summaryrefslogtreecommitdiff
path: root/plugins/Utils.pas/sparam.pas
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Utils.pas/sparam.pas')
-rw-r--r--plugins/Utils.pas/sparam.pas7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Utils.pas/sparam.pas b/plugins/Utils.pas/sparam.pas
index 00e49ac1ab..623391769e 100644
--- a/plugins/Utils.pas/sparam.pas
+++ b/plugins/Utils.pas/sparam.pas
@@ -156,8 +156,11 @@ begin
begin
if atype=ACF_NUMBER then //!!
begin
- pcw:='0';
- SendMessageW(wnd,WM_SETTEXT,0,TLParam(pcw));
+ if SendMessageW(wnd,WM_GETTEXTLENGTH,0,0)=0 then
+ begin
+ pcw:='0';
+ SendMessageW(wnd,WM_SETTEXT,0,TLParam(pcw));
+ end;
end;
EnableEditField(wnd,true);
end;