Saving a frame cause RangCheck exception, if frame is moved partly out of the desktop
Original Reporter info from Mantis: Martin @martin_frb
-
Reporter name: Martin Friebe
Original Reporter info from Mantis: Martin @martin_frb
- Reporter name: Martin Friebe
Description:
Tested on Windows:
Open a new application, add a frame. Move the frame to the top off your desktop, and keep moving it up, so that a part of the frames titlebar is outside the Desktop.
Now save the project/frame. You should get the exception attached below.
Note, DesignetTop/DesignerLeft may also be negative on some multi-monitor environments?
Additional information:
TApplication.HandleException Range check error
Stack trace:
$009B6A37 TFRAMEDESIGNERFORM__DOSAVEBOUNDS, line 146 of C:/lazarus_latest/designer/framedesigner.pas
$0077FD40 TCUSTOMFORMEDITOR__SAVEHIDDENDESIGNERFORMPROPERTIES, line 1294 of customformeditor.pp
$0043FF6D TMAINIDE__DOSAVEUNITCOMPONENT, line 4639 of main.pp
$0044A4A3 TMAINIDE__DOSAVEEDITORFILE, line 7260 of main.pp
$004383D0 TMAINIDE__MNUSAVECLICKED, line 2545 of main.pp
$0051F7C1 TCONTROL__CLICK, line 2109 of ./include/control.inc
$005475E1 TCUSTOMSPEEDBUTTON__CLICK, line 112 of ./include/speedbutton.inc
$00549304 TCUSTOMSPEEDBUTTON__WMLBUTTONUP, line 783 of ./include/speedbutton.inc
$0040B2D9
$0051D146 TCONTROL__PERFORM, line 996 of ./include/control.inc
$00512A08 TWINCONTROL__ISCONTROLMOUSEMSG, line 4203 of ./include/wincontrol.inc
$00513EC7 TWINCONTROL__WNDPROC, line 4776 of ./include/wincontrol.inc
$005CAA73 DELIVERMESSAGE, line 111 of lclmessageglue.pas
$005A985A WINDOWPROC, line 2449 of win32callback.inc
$7614F8D2
$7614F794
$76150008
Mantis conversion info:
- Mantis ID: 13468
- Version: 0.9.27 (SVN)
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 21561 (#f5b7d75d)
- Target version: 1.0.0
- LazTarget: 1.0