Skip to content

Commit de76dc3

Browse files
committed
Fix incorrect bounds being saved for MainWindow
Instead of saving the bounds of the UI component, save the bounds of the document window.
1 parent 9e03171 commit de76dc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/MainWindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ void MainWindow::saveWindowBounds()
400400
XmlElement* bounds = new XmlElement ("BOUNDS");
401401
bounds->setAttribute ("x", documentWindow->getScreenX());
402402
bounds->setAttribute ("y", documentWindow->getScreenY());
403-
bounds->setAttribute ("w", documentWindow->getContentComponent()->getWidth());
404-
bounds->setAttribute ("h", documentWindow->getContentComponent()->getHeight());
403+
bounds->setAttribute ("w", documentWindow->getWidth());
404+
bounds->setAttribute ("h", documentWindow->getHeight());
405405
bounds->setAttribute ("fullscreen", documentWindow->isFullScreen());
406406

407407
xml->addChildElement (bounds);

0 commit comments

Comments
 (0)