summaryrefslogtreecommitdiffstats
path: root/src/extension
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-07-17 21:03:40 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-07-17 21:03:40 +0000
commit70586fa27b270f48e36b5f92f0acf803eb723e6a (patch)
treee47ccad7e06b47d5b692e686344eda3956298ae5 /src/extension
parentCleanup: eliminate require-config.h (diff)
downloadinkscape-70586fa27b270f48e36b5f92f0acf803eb723e6a.tar.gz
inkscape-70586fa27b270f48e36b5f92f0acf803eb723e6a.zip
Cleanup: eliminate version from config.h
The idea behind inkscape-version.h / inkscape-version.cpp is to avoid rebuilding most of the code base when the version number changes. Defining a version number in config.h defeats this purpose.
Diffstat (limited to 'src/extension')
-rw-r--r--src/extension/internal/latex-pstricks.cpp5
-rw-r--r--src/extension/internal/latex-text-renderer.cpp3
2 files changed, 5 insertions, 3 deletions
diff --git a/src/extension/internal/latex-pstricks.cpp b/src/extension/internal/latex-pstricks.cpp
index ae8f30a5c..018c56d82 100644
--- a/src/extension/internal/latex-pstricks.cpp
+++ b/src/extension/internal/latex-pstricks.cpp
@@ -25,6 +25,7 @@
#include "extension/print.h"
#include "extension/system.h"
+#include "inkscape-version.h"
#include "io/sys.h"
#include "latex-pstricks.h"
#include "sp-item.h"
@@ -121,8 +122,8 @@ unsigned int PrintLatex::begin (Inkscape::Extension::Print *mod, SPDocument *doc
if (res >= 0) {
- os << "%%Creator: " << PACKAGE_STRING << "\n";
- os << "%%Please note this file requires PSTricks extensions\n";
+ os << "%%Creator: Inkscape " << Inkscape::version_string << "\n";
+ os << "%%Please note this file requires PSTricks extensions\n";
os << "\\psset{xunit=.5pt,yunit=.5pt,runit=.5pt}\n";
// from now on we can output px, but they will be treated as pt
diff --git a/src/extension/internal/latex-text-renderer.cpp b/src/extension/internal/latex-text-renderer.cpp
index dec75aeb6..d1cf7e484 100644
--- a/src/extension/internal/latex-text-renderer.cpp
+++ b/src/extension/internal/latex-text-renderer.cpp
@@ -43,6 +43,7 @@
#include "extension/system.h"
+#include "inkscape-version.h"
#include "io/sys.h"
#include "document.h"
@@ -153,7 +154,7 @@ LaTeXTextRenderer::setTargetFile(gchar const *filename) {
(void) signal(SIGPIPE, SIG_IGN);
#endif
- fprintf(_stream, "%%%% Creator: Inkscape %s, www.inkscape.org\n", PACKAGE_STRING);
+ fprintf(_stream, "%%%% Creator: Inkscape %s, www.inkscape.org\n", Inkscape::version_string);
fprintf(_stream, "%%%% PDF/EPS/PS + LaTeX output extension by Johan Engelen, 2010\n");
fprintf(_stream, "%%%% Accompanies image file '%s' (pdf, eps, ps)\n", _filename);
fprintf(_stream, "%%%%\n");