From fa0d3b889ad80af4b5a0c3f58226978a42e96b37 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Fri, 28 Feb 2014 15:01:45 +0100 Subject: Properly identify an embedded SVG. (bzr r13075) --- src/sp-root.cpp | 3 +++ src/sp-root.h | 1 + 2 files changed, 4 insertions(+) (limited to 'src') diff --git a/src/sp-root.cpp b/src/sp-root.cpp index 4f1444e31..12570e03e 100644 --- a/src/sp-root.cpp +++ b/src/sp-root.cpp @@ -387,6 +387,9 @@ void SPRoot::print(SPPrintContext *ctx) sp_print_release(ctx); } +const char *SPRoot::displayName() const { + return "SVG"; // Do not translate +} /* Local Variables: diff --git a/src/sp-root.h b/src/sp-root.h index 1c9faed9b..0e5d87133 100644 --- a/src/sp-root.h +++ b/src/sp-root.h @@ -63,6 +63,7 @@ public: virtual Inkscape::DrawingItem* show(Inkscape::Drawing &drawing, unsigned int key, unsigned int flags); virtual void print(SPPrintContext *ctx); + virtual const char* displayName() const; }; #endif /* !SP_ROOT_H_SEEN */ -- cgit v1.2.3