diff options
| author | Liam P. White <inkscapebrony@gmail.com> | 2014-06-19 02:32:07 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebrony@gmail.com> | 2014-06-19 02:32:07 +0000 |
| commit | f164dc6009f644939ba5fb09503fe0e35f1d4aae (patch) | |
| tree | 281c32b52168c049ce35d0f459413c28aa92a7b1 /src/knot-holder-entity.cpp | |
| parent | Add clip group option from Ponyscape (diff) | |
| parent | Fix make check (diff) | |
| download | inkscape-f164dc6009f644939ba5fb09503fe0e35f1d4aae.tar.gz inkscape-f164dc6009f644939ba5fb09503fe0e35f1d4aae.zip | |
Update to experimental r13404
(bzr r13090.1.84)
Diffstat (limited to 'src/knot-holder-entity.cpp')
| -rw-r--r-- | src/knot-holder-entity.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/knot-holder-entity.cpp b/src/knot-holder-entity.cpp index 6471124ec..6af5c6a56 100644 --- a/src/knot-holder-entity.cpp +++ b/src/knot-holder-entity.cpp @@ -80,13 +80,17 @@ KnotHolderEntity::~KnotHolderEntity() void KnotHolderEntity::update_knot() { - Geom::Affine const i2dt(item->i2dt_affine()); + Geom::Point knot_pos(knot_get()); + if (knot_pos.isFinite()) { + Geom::Point dp(knot_pos * item->i2dt_affine()); - Geom::Point dp(knot_get() * i2dt); - - _moved_connection.block(); - knot->setPosition(dp, SP_KNOT_STATE_NORMAL); - _moved_connection.unblock(); + _moved_connection.block(); + knot->setPosition(dp, SP_KNOT_STATE_NORMAL); + _moved_connection.unblock(); + } else { + // knot coords are non-finite, hide knot + knot->hide(); + } } Geom::Point |
