summaryrefslogtreecommitdiff
path: root/dviware/dvisvgm/src/ImageToSVG.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dviware/dvisvgm/src/ImageToSVG.cpp')
-rw-r--r--dviware/dvisvgm/src/ImageToSVG.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/dviware/dvisvgm/src/ImageToSVG.cpp b/dviware/dvisvgm/src/ImageToSVG.cpp
index 990647a008..5b105ee200 100644
--- a/dviware/dvisvgm/src/ImageToSVG.cpp
+++ b/dviware/dvisvgm/src/ImageToSVG.cpp
@@ -2,7 +2,7 @@
** ImageToSVG.cpp **
** **
** This file is part of dvisvgm -- a fast DVI to SVG converter **
-** Copyright (C) 2005-2023 Martin Gieseking <martin.gieseking@uos.de> **
+** Copyright (C) 2005-2024 Martin Gieseking <martin.gieseking@uos.de> **
** **
** This program is free software; you can redistribute it and/or **
** modify it under the terms of the GNU General Public License as **
@@ -22,6 +22,7 @@
#include <fstream>
#include <sstream>
#include "Calculator.hpp"
+#include "DvisvgmSpecialHandler.hpp"
#include "ImageToSVG.hpp"
#include "Message.hpp"
#include "MessageException.hpp"
@@ -105,6 +106,10 @@ void ImageToSVG::writeSVG (int pageno) {
<< " (" << XMLString(_bbox.width()*bp2mm) << "mm"
<< " x " << XMLString(_bbox.height()*bp2mm) << "mm)\n";
Message::mstream(false, Message::MC_PAGE_WRITTEN) << "output written to " << svgfname << '\n';
+ if (!_userMessage.empty()) {
+ string msg = expandText(_userMessage);
+ Message::ustream(true) << msg << "\n";
+ }
}
_bbox.invalidate();
_svg.reset();