Code

close transaction when removing empty flowtext; fixes 1704180
authorbuliabyak <buliabyak@users.sourceforge.net>
Sat, 21 Apr 2007 22:35:19 +0000 (22:35 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sat, 21 Apr 2007 22:35:19 +0000 (22:35 +0000)
src/text-context.cpp

index f2dd4bf2ba72b2bef1f6cb8d723a3ddfc1378e00..670a863acb01f6b10cfcb6ad710bf399b20655d9 100644 (file)
@@ -1545,6 +1545,8 @@ sp_text_context_forget_text(SPTextContext *tc)
         // the XML editor
         if ( text_repr && sp_repr_parent(text_repr) ) {
             sp_repr_unparent(text_repr);
+            sp_document_done(sp_desktop_document(tc->desktop), SP_VERB_CONTEXT_TEXT, 
+                     _("Remove empty text"));
         }
     }
 }