IDEIntf: GetDefaultBounds: fixed negative right/bottom

git-svn-id: trunk@31490 -
This commit is contained in:
mattias 2011-07-01 13:03:29 +00:00
parent f5dd2491a8
commit b9e464b39b

View File

@ -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