mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-10-06 07:00:16 +08:00
Fix restoring wrong last split position in wxPersistentSplitter
This was broken since f24b3d5483 (Save last wxSplitterWindow position
before it was unsplit, 2024-02-12) which accidentally used the wrong
lastSplitPos component when restoring.
This commit is contained in:
@@ -68,8 +68,8 @@ public:
|
||||
// Note that it's possible that default position was not stored, in
|
||||
// which case lastSplitPos will just remain as (0, 0) and that's ok.
|
||||
wxPoint lastSplitPos;
|
||||
RestoreValue(wxPERSIST_SPLITTER_DEFAULT_HORIZONTAL, &lastSplitPos.x);
|
||||
RestoreValue(wxPERSIST_SPLITTER_DEFAULT_VERTICAL, &lastSplitPos.y);
|
||||
RestoreValue(wxPERSIST_SPLITTER_DEFAULT_HORIZONTAL, &lastSplitPos.y);
|
||||
RestoreValue(wxPERSIST_SPLITTER_DEFAULT_VERTICAL, &lastSplitPos.x);
|
||||
|
||||
Get()->SetLastSplitPosition(lastSplitPos);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user