summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2014-02-28 14:01:45 +0000
committertavmjong-free <tavmjong@free.fr>2014-02-28 14:01:45 +0000
commitfa0d3b889ad80af4b5a0c3f58226978a42e96b37 (patch)
treee3b365c00f84f14ece86fc0f8141b79b2e9addda /src
parentFix for Bug #1281859 (color gesture problems, alpha values below 0 and above 1). (diff)
downloadinkscape-fa0d3b889ad80af4b5a0c3f58226978a42e96b37.tar.gz
inkscape-fa0d3b889ad80af4b5a0c3f58226978a42e96b37.zip
Properly identify an embedded SVG.
(bzr r13075)
Diffstat (limited to 'src')
-rw-r--r--src/sp-root.cpp3
-rw-r--r--src/sp-root.h1
2 files changed, 4 insertions, 0 deletions
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 */