diff options
| author | John Smith <john.smith7545@yahoo.com> | 2012-09-27 03:32:48 +0000 |
|---|---|---|
| committer | John Smith <john.smith7545@yahoo.com> | 2012-09-27 03:32:48 +0000 |
| commit | 01e3b60948d36b1f17380f43b46180157e96ec95 (patch) | |
| tree | 0eaa17169fc5f4a9828a40bb06d68f698082cb8c /src/ui/widget/layer-selector.cpp | |
| parent | Fix for 172030 : Width of Undo History palette could be optimized (diff) | |
| download | inkscape-01e3b60948d36b1f17380f43b46180157e96ec95.tar.gz inkscape-01e3b60948d36b1f17380f43b46180157e96ec95.zip | |
Fix for 169001 : Long layer names mess with the UI
(bzr r11708)
Diffstat (limited to 'src/ui/widget/layer-selector.cpp')
| -rw-r--r-- | src/ui/widget/layer-selector.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/widget/layer-selector.cpp b/src/ui/widget/layer-selector.cpp index 4bb4d8c98..4f8d921e6 100644 --- a/src/ui/widget/layer-selector.cpp +++ b/src/ui/widget/layer-selector.cpp @@ -579,7 +579,7 @@ void LayerSelector::_prepareLabelRenderer( gchar const *label; if ( object != root ) { - label = gr_ellipsize_text (object->label(), 50).c_str(); + label = object->label(); if (!object->label()) { label = object->defaultLabel(); label_defaulted = true; @@ -588,7 +588,7 @@ void LayerSelector::_prepareLabelRenderer( label = _("(root)"); } - gchar *text = g_markup_printf_escaped(format, label); + gchar *text = g_markup_printf_escaped(format, gr_ellipsize_text (label, 50).c_str()); _label_renderer.property_markup() = text; g_free(text); g_free(format); |
