summaryrefslogtreecommitdiffstats
path: root/src/dialogs/stroke-style.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-12-04 05:42:14 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-12-04 05:42:14 +0000
commit2be6529f2045447493daa98200b330e8b2ef3645 (patch)
tree74885e2a23262378a5d209d2681d641e2e59e6f5 /src/dialogs/stroke-style.cpp
parentwarning cleanup (diff)
downloadinkscape-2be6529f2045447493daa98200b330e8b2ef3645.tar.gz
inkscape-2be6529f2045447493daa98200b330e8b2ef3645.zip
fix bug: mid and end markers showed previews from start markers
(bzr r4164)
Diffstat (limited to 'src/dialogs/stroke-style.cpp')
-rw-r--r--src/dialogs/stroke-style.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dialogs/stroke-style.cpp b/src/dialogs/stroke-style.cpp
index 54c1b7164..903b7ea47 100644
--- a/src/dialogs/stroke-style.cpp
+++ b/src/dialogs/stroke-style.cpp
@@ -601,7 +601,7 @@ sp_marker_prev_new(unsigned psize, gchar const *mname,
Inkscape::GC::release(mrepr);
// Uncomment this to get the sandbox documents saved (useful for debugging)
- //FILE *fp = fopen (g_strconcat(mname, ".svg", NULL), "w");
+ //FILE *fp = fopen (g_strconcat(menu_id, mname, ".svg", NULL), "w");
//sp_repr_save_stream (sp_document_repr_doc (sandbox), fp);
//fclose (fp);
@@ -625,7 +625,9 @@ sp_marker_prev_new(unsigned psize, gchar const *mname,
double sf = 0.8;
GdkPixbuf* pixbuf = NULL;
- Glib::ustring key = svg_preview_cache.cache_key(source->uri, mname, psize);
+ gchar *cache_name = g_strconcat(menu_id, mname, NULL);
+ Glib::ustring key = svg_preview_cache.cache_key(source->uri, cache_name, psize);
+ g_free (cache_name);
pixbuf = svg_preview_cache.get_preview_from_cache(key);
if (pixbuf == NULL) {