From 6c92c2b7a53374072574aeac6095974e45065ce8 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Fri, 16 Mar 2007 04:18:45 +0000 Subject: [PATCH] give new flowtext the current text tool style --- src/text-context.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/text-context.cpp b/src/text-context.cpp index 6a527e544..f2dd4bf2b 100644 --- a/src/text-context.cpp +++ b/src/text-context.cpp @@ -699,6 +699,8 @@ sp_text_context_root_handler(SPEventContext *const ec, GdkEvent *const event) 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, -- 2.30.2