summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 683b2d5)
raw | patch | inline | side by side (parent: 683b2d5)
author | mderezynski <mderezynski@users.sourceforge.net> | |
Mon, 22 May 2006 10:43:18 +0000 (10:43 +0000) | ||
committer | mderezynski <mderezynski@users.sourceforge.net> | |
Mon, 22 May 2006 10:43:18 +0000 (10:43 +0000) |
src/widgets/toolbox.cpp | patch | blob | history |
index 2d2cd801bb14c5c7b1bc5393b838cdbc6f0ca9ca..e67c39cc1155fecc153b381954f3585f66b0f714 100644 (file)
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
}
}
+ SPStyle *query =
+ sp_style_new ();
+ int result_numbers =
+ sp_desktop_query_style (SP_ACTIVE_DESKTOP, query, QUERY_STYLE_PROPERTY_FONTNUMBERS);
+
+ // If querying returned nothing, read the style from the text tool prefs (default style for new texts)
+ if (result_numbers == QUERY_STYLE_NOTHING)
+ {
+ sp_repr_css_change (inkscape_get_repr (INKSCAPE, "tools.text"), css, "style");
+ }
+
sp_desktop_set_style (desktop, css, true, true);
sp_document_done (sp_desktop_document (SP_ACTIVE_DESKTOP));
sp_repr_css_attr_unref (css);