mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 15:57:56 +02:00
IDEIntf: GetDefaultBounds: fixed negative right/bottom
git-svn-id: trunk@31490 -
This commit is contained in:
parent
f5dd2491a8
commit
b9e464b39b
@ -1298,7 +1298,7 @@ begin
|
||||
else
|
||||
aRight:=StrToIntDef(Right,0);
|
||||
if aRight<0 then
|
||||
aRight:=ScreenR.Right-aRight // relative to right of screen
|
||||
aRight:=ScreenR.Right+aRight // relative to right of screen
|
||||
else if (Right<>'') and (Right[1]='+') then
|
||||
inc(aRight,DefBounds.Left) // relative to Left
|
||||
else
|
||||
@ -1320,7 +1320,7 @@ begin
|
||||
else
|
||||
aBottom:=StrToIntDef(Bottom,0);
|
||||
if aBottom<0 then
|
||||
aBottom:=ScreenR.Bottom-aBottom // relative to bottom of screen
|
||||
aBottom:=ScreenR.Bottom+aBottom // relative to bottom of screen
|
||||
else if (Bottom<>'') and (Bottom[1]='+') then
|
||||
inc(aBottom,DefBounds.Top) // relative to Top
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user