Code

Prevent context menu and keyboard shortcuts from interrupting grabs
[inkscape.git] / src / sp-tspan.cpp
index 9da95df904906e9d947ea5327c9ba7c088bbd5bd..89a86218efb37d0318ce3a0d35505ad8a4ab9ab4 100644 (file)
@@ -207,7 +207,7 @@ static void sp_tspan_bbox(SPItem const *item, NRRect *bbox, Geom::Matrix const &
 {
     // find out the ancestor text which holds our layout
     SPObject *parent_text = SP_OBJECT(item);
-    for (; parent_text != NULL && !SP_IS_TEXT(parent_text); parent_text = SP_OBJECT_PARENT (parent_text));
+    for (; parent_text != NULL && !SP_IS_TEXT(parent_text); parent_text = SP_OBJECT_PARENT (parent_text)){};
     if (parent_text == NULL) return;
 
     // get the bbox of our portion of the layout