summaryrefslogtreecommitdiffstats
path: root/src/text-context.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-03-16 04:18:45 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-03-16 04:18:45 +0000
commit5c5a7f3cfb32fab62a8b0e035ff3335c614763b0 (patch)
tree2855b0204aadb18e0687287a0cea73d02a6b9150 /src/text-context.cpp
parentsensitize unlock and unhide verbs (diff)
downloadinkscape-5c5a7f3cfb32fab62a8b0e035ff3335c614763b0.tar.gz
inkscape-5c5a7f3cfb32fab62a8b0e035ff3335c614763b0.zip
give new flowtext the current text tool style
(bzr r2668)
Diffstat (limited to 'src/text-context.cpp')
-rw-r--r--src/text-context.cpp2
1 files changed, 2 insertions, 0 deletions
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,