From 6470720a871e8b56b049bc201877ecbbd6b0f62e Mon Sep 17 00:00:00 2001 From: buliabyak Date: Tue, 4 Dec 2007 05:42:14 +0000 Subject: [PATCH] fix bug: mid and end markers showed previews from start markers --- src/dialogs/stroke-style.cpp | 6 ++++-- 1 file 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) { -- 2.30.2