Page MenuHomePhabricator

PlanarFigureInteractor unnecessarily uses property of PlanarFigure
Closed, ResolvedPublic

Description

The 'new version' of the PlanarFigureInteractor uses the property "initiallyplaced" to determine if the figure has been placed or not in the method CheckFigurePlaced().

This check has been introduced in the porting of the PlanarFigureInteractor to the new interaction-framework.

This check is not necessary and causes massive problems with the interaction of PlanarFigures that have been serialized BEFORE the property "initiallyplaced" has been introduced.

As this check is unnecessary, we can remove the check without a problem.

Event Timeline

User engelm has pushed new remote branch:

bug-17190-planarfigureinteraction-with-old-figures-snapshot

User engelm has pushed new remote branch:

bug-17190-planarfigureinteraction-with-old-figures

I have removed the check for the property as described in the description. Interaction with PlanarFgigures that have been serialized without the property "initallyplaced" works fien again.

Merge to master is currently not possible due to a red dashboard.

OK, turns out we really need the check for this property here. Without it, the PlanarFigure is not correctly created when moving the mouse even slightly during a double-click.

[510c65]: Merge branch 'bug-17190-planarfigureinteraction-with-old-figures'

Merged commits:

2014-02-24 08:28:23 Markus Engel [3e07d1]
fixed additional interaction bug in PlanarFigureInteractor


2014-02-21 13:01:05 Markus Engel [7d7cd5]
adding missing property in PlanarFigureReader


2014-02-21 13:01:30 Markus Engel [c70c6b]
Revert "removed unnecessary check for property "initiallyplaced""

This reverts commit d8b96002545e0fbe2128f0858dfbb2e6fc979c1f.


2014-02-13 12:00:06 Markus Engel [91a1be]
removed unnecessary check for property "initiallyplaced"

[1c0765]: COMP: Merge branch 'bug-17190-planarfigureinteraction-with-old-figures

Merged commits:

2014-02-24 09:15:13 Markus Engel [12aac5]
added missing property to fix PlanarFigureIOTest

Works like a charm. The fix has not been closed because I was not able to integrate it into master yet (Dashboard locked).

I admit I haven't tried to merge it recently, but it should not be a problem.. Can you give it a try?

Markus, what is the status of this bug? Is it safe to include it into the upcoming release?

Yes, it's safe. There really should be no issues connected to these changes..

Current release is finished. Resetting target milestone