diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-15 19:57:36 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-15 19:57:36 +0300 |
commit | c46958a129a1d36dd07c6805fb39cc7d6c89b124 (patch) | |
tree | 183986d3cedcfef593271135617649b1a0133baa /plugins/NewStory/src | |
parent | b06029e457a31e38c3c1130505f67b7e2c0a2ba3 (diff) |
fixes #3932 (NewStory: fix for resizer)
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r-- | plugins/NewStory/src/history_dlg.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/NewStory/src/history_dlg.cpp b/plugins/NewStory/src/history_dlg.cpp index 874e098ce7..e681aaf958 100644 --- a/plugins/NewStory/src/history_dlg.cpp +++ b/plugins/NewStory/src/history_dlg.cpp @@ -783,9 +783,9 @@ public: hDwp = DeferWindowPos(hDwp, splitTime.GetHwnd(), 0, hTimeTree, iClientTop, WND_SPACING, iClientBottom, SWP_NOZORDER | SWP_NOACTIVATE); if (bShowTime && bShowBookmarks) { - int hMiddle = (iClientBottom - iClientTop) / 2; - hDwp = DeferWindowPos(hDwp, m_timeTree.GetHwnd(), 0, WND_SPACING, iClientTop, hTimeTree - WND_SPACING, iClientTop + hMiddle, SWP_NOZORDER | SWP_NOACTIVATE); - hDwp = DeferWindowPos(hDwp, m_bookmarks.GetHwnd(), 0, WND_SPACING, iClientTop + hMiddle, hTimeTree - WND_SPACING, iClientBottom, SWP_NOZORDER | SWP_NOACTIVATE); + int hMiddle = iClientBottom / 2; + hDwp = DeferWindowPos(hDwp, m_timeTree.GetHwnd(), 0, WND_SPACING, iClientTop, hTimeTree - WND_SPACING, hMiddle, SWP_NOZORDER | SWP_NOACTIVATE); + hDwp = DeferWindowPos(hDwp, m_bookmarks.GetHwnd(), 0, WND_SPACING, iClientTop + hMiddle, hTimeTree - WND_SPACING, hMiddle, SWP_NOZORDER | SWP_NOACTIVATE); } else if (bShowTime) hDwp = DeferWindowPos(hDwp, m_timeTree.GetHwnd(), 0, WND_SPACING, iClientTop, hTimeTree - WND_SPACING, iClientBottom, SWP_NOZORDER | SWP_NOACTIVATE); |