summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 33156b0)
raw | patch | inline | side by side (parent: 33156b0)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 16 Mar 2007 04:18:45 +0000 (04:18 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 16 Mar 2007 04:18:45 +0000 (04:18 +0000) |
src/text-context.cpp | patch | blob | history |
diff --git a/src/text-context.cpp b/src/text-context.cpp
index 6a527e544196b3a74cf6fa8ff6447ca927eee290..f2dd4bf2ba72b2bef1f6cb8d723a3ddfc1378e00 100644 (file)
--- a/src/text-context.cpp
+++ b/src/text-context.cpp
if (fabs(p1[NR::Y] - tc->p0[NR::Y]) > cursor_height) {
// otherwise even one line won't fit; most probably a slip of hand (even if bigger than tolerance)
SPItem *ft = create_flowtext_with_internal_frame (desktop, tc->p0, p1);
+ /* Set style */
+ sp_desktop_apply_style_tool(SP_EVENT_CONTEXT_DESKTOP(ec), SP_OBJECT_REPR(ft), "tools.text", true);
sp_desktop_selection(desktop)->set(ft);
ec->desktop->messageStack()->flash(Inkscape::NORMAL_MESSAGE, _("Flowed text is created."));
sp_document_done(sp_desktop_document(desktop), SP_VERB_CONTEXT_TEXT,