summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2006-06-08 07:51:33 +0000
committerjoncruz <joncruz@users.sourceforge.net>2006-06-08 07:51:33 +0000
commitdfbc0626085aca445847231651325b273288cdf5 (patch)
tree6002bdabb4403c29fabd7079323738390b5143c0
parentMinor typos and markups (diff)
downloadinkscape-dfbc0626085aca445847231651325b273288cdf5.tar.gz
inkscape-dfbc0626085aca445847231651325b273288cdf5.zip
Clear selection cache when not dragging. Fixes bug #1501156
(bzr r1183)
-rw-r--r--ChangeLog7
-rw-r--r--src/seltrans.cpp13
2 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 89bba40db..55f30adf2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2006-06-07 Jon A. Cruz <jon@joncruz.org>
+ * src/seltrans.cpp:
+
+ Work-around for seltrans not getting calls to grab() and ungrab() as expected.
+ Fixes bug #1501156.
+
+2006-06-07 Jon A. Cruz <jon@joncruz.org>
+
* src/widgets/toolbox.cpp:
Applied patch #1502407.
diff --git a/src/seltrans.cpp b/src/seltrans.cpp
index a05cac181..f6134a01c 100644
--- a/src/seltrans.cpp
+++ b/src/seltrans.cpp
@@ -380,6 +380,13 @@ void Inkscape::SelTrans::stamp()
{
Inkscape::Selection *selection = sp_desktop_selection(_desktop);
+ bool fixup = !_grabbed;
+ if ( fixup && _stamp_cache ) {
+ // TODO - give a proper fix. Simple temproary work-around for the grab() issue
+ g_slist_free(_stamp_cache);
+ _stamp_cache = NULL;
+ }
+
/* stamping mode */
if (!_empty) {
GSList *l;
@@ -431,6 +438,12 @@ void Inkscape::SelTrans::stamp()
}
sp_document_done(sp_desktop_document(_desktop));
}
+
+ if ( fixup && _stamp_cache ) {
+ // TODO - give a proper fix. Simple temproary work-around for the grab() issue
+ g_slist_free(_stamp_cache);
+ _stamp_cache = NULL;
+ }
}
void Inkscape::SelTrans::_updateHandles()