commit 4e607aaef12f9072f840ae3064cba319b68f23c8
parent 06500cd123296afc7041ddc233148e9050513254
Author: cfillion <cfillion@users.noreply.github.com>
Date: Fri, 23 Dec 2016 23:54:50 -0500
about: unregister controls before re-anchoring them
just to avoid having duplicate items in WDL/wndsize's list
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/dialog.cpp b/src/dialog.cpp
@@ -357,6 +357,7 @@ void Dialog::setAnchor(HWND handle, const int flags)
const float right = (float)min(1, flags & AnchorRight);
const float bottom = (float)min(1, flags & AnchorBottom);
+ m_resizer.remove_itemhwnd(handle);
m_resizer.init_itemhwnd(handle, left, top, right, bottom);
}