summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-05-18 01:15:12 +0000
committerJohn Smith <removethis.john.q.public@bigmail.com>2012-05-18 01:15:12 +0000
commit96eed82cbc4f91963fcc52fbdf6d7cb69cb503b0 (patch)
tree409026f65dcf6b20d99158e39045055d35cf3535
parentMake docked dialogs indicate focus (diff)
downloadinkscape-96eed82cbc4f91963fcc52fbdf6d7cb69cb503b0.tar.gz
inkscape-96eed82cbc4f91963fcc52fbdf6d7cb69cb503b0.zip
Fix for 973195 : Limit width of marker labels
(bzr r11378)
-rw-r--r--src/widgets/stroke-marker-selector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/stroke-marker-selector.cpp b/src/widgets/stroke-marker-selector.cpp
index 9b2c3bb42..34848f3b4 100644
--- a/src/widgets/stroke-marker-selector.cpp
+++ b/src/widgets/stroke-marker-selector.cpp
@@ -36,6 +36,7 @@
#include "sp-root.h"
#include "ui/cache/svg_preview_cache.h"
#include "helper/stock-items.h"
+#include "gradient-vector.h"
#include <gtkmm/adjustment.h>
#include "ui/widget/spinbutton.h"
@@ -314,7 +315,7 @@ void MarkerComboBox::add_markers (GSList *marker_list, SPDocument *source)
prv->show();
Gtk::TreeModel::Row row = *(marker_store->append());
- row[marker_columns.label] = g_strdup(markid);
+ row[marker_columns.label] = gr_ellipsize_text(markid, 20);
row[marker_columns.marker] = g_strdup(markid);
row[marker_columns.isstock] = isstock;
row[marker_columns.image] = prv;