Commit 1e0177b3 authored by Martin Schreiber's avatar Martin Schreiber

* ttextedit.loadfromstream() set ffilerights after calling clear(), fixes...

* ttextedit.loadfromstream() set ffilerights after calling clear(), fixes restoring of file flags by file save.
parent 997063ee
...@@ -947,12 +947,12 @@ var ...@@ -947,12 +947,12 @@ var
po1: pmsestring; po1: pmsestring;
begin begin
checkgrid; checkgrid;
ffilerights:= stream.filerights;
if restorestate then begin if restorestate then begin
getstate(statsave); getstate(statsave);
end; end;
beginupdate; beginupdate;
clear; clear;
ffilerights:= stream.filerights;
try try
flines.loadfromstream(stream); flines.loadfromstream(stream);
ffoundeolstyle:= stream.foundeolstyle(); ffoundeolstyle:= stream.foundeolstyle();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment