Code

indentation
authorbuliabyak <buliabyak@users.sourceforge.net>
Sat, 13 May 2006 21:51:17 +0000 (21:51 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sat, 13 May 2006 21:51:17 +0000 (21:51 +0000)
src/desktop-style.cpp

index f680988f8768bacb0067d970fd276d6ba0b3dc22..58209aaa3c70d4eb41b440535fd5ae8ec2f7ed9b 100644 (file)
@@ -225,11 +225,10 @@ sp_desktop_get_color_tool(SPDesktop *desktop, char const *tool, bool is_fill)
     guint32 r = 0; // if there's no color, return black
     if (prefs_get_int_attribute(tool, "usecurrent", 0) != 0) {
         css = sp_desktop_get_style(desktop, is_fill);
-    }
-    else {
+    } else {
         Inkscape::XML::Node *tool_repr = inkscape_get_repr(INKSCAPE, tool);
         css = sp_repr_css_attr_inherited(tool_repr, "style");
-        }
+    }
    
     gchar const *property = sp_repr_css_property(css, is_fill ? "fill" : "stroke", "#000");
            
@@ -237,8 +236,8 @@ sp_desktop_get_color_tool(SPDesktop *desktop, char const *tool, bool is_fill)
         if (strncmp(property, "url", 3)) { // and if it's not url,
             // read it
             r = sp_svg_read_color(property, r);
-            }
         }
+    }
     return r | 0xff;
 }
 /**