[commit] r2756 - trunk/GME/Gme
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Thu Jul 19 11:07:51 CDT 2018
Author: ksmyth
Date: Thu Jul 19 11:07:50 2018
New Revision: 2756
Log:
GMEView: reset model grid for parent on changing position
Moving a port may make the decorator for the model in the parent bigger,
which may lead to overlapping decorators. This may crash the
autorouter. OPENMETA-535
Modified:
trunk/GME/Gme/GMEView.cpp
Modified: trunk/GME/Gme/GMEView.cpp
==============================================================================
--- trunk/GME/Gme/GMEView.cpp Thu Jul 19 11:07:47 2018 (r2755)
+++ trunk/GME/Gme/GMEView.cpp Thu Jul 19 11:07:50 2018 (r2756)
@@ -6656,7 +6656,9 @@
CPoint diff = point - CPoint(left,top);
CGuiObject::ShiftModels(selected, diff);
CGuiAnnotator::ShiftAnnotations(selectedAnnotations,diff);
- ResetParent();
+ // moving a port inside this may make the decorator for this in the parent bigger
+ // so we reset the model grid for the parent
+ ResetParent(true);
__CommitTransaction();
}
catch(hresult_exception e) {
More information about the gme-commit
mailing list