From e92962ddc609aaba91d1b9781ea044e84bafeb1b Mon Sep 17 00:00:00 2001 From: John Smith Date: Mon, 20 Aug 2012 21:53:17 +0900 Subject: Fix for 165865 : markers must take object's stroke color (bzr r11614) --- src/ui/cache/svg_preview_cache.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ui/cache/svg_preview_cache.cpp') diff --git a/src/ui/cache/svg_preview_cache.cpp b/src/ui/cache/svg_preview_cache.cpp index f8a806a13..7842bd5b3 100644 --- a/src/ui/cache/svg_preview_cache.cpp +++ b/src/ui/cache/svg_preview_cache.cpp @@ -121,6 +121,14 @@ GdkPixbuf* SvgPreview::get_preview(const gchar* uri, const gchar* id, Inkscape:: return px; } +void SvgPreview::remove_preview_from_cache(const Glib::ustring& key) { + std::map::iterator found = _pixmap_cache.find(key); + if ( found != _pixmap_cache.end() ) { + _pixmap_cache.erase(key); + } +} + + } } } -- cgit v1.2.3