From 75e613e9f12bc82ba3657b660eb4fc08954fb7b4 Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Mon, 11 Nov 2019 23:21:34 -0500 Subject: [PATCH] Trim leading and trailing spaces from image filenames from merge records. (#76) --- model/ModelImageObject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model/ModelImageObject.cpp b/model/ModelImageObject.cpp index 8bfd0e33..3de24380 100644 --- a/model/ModelImageObject.cpp +++ b/model/ModelImageObject.cpp @@ -438,7 +438,7 @@ namespace glabels } else { - QString filename = mFilenameNode.text( record, variables ); + QString filename = mFilenameNode.text( record, variables ).trimmed(); QImage* image; QSvgRenderer* svgRenderer; QByteArray svg; @@ -548,7 +548,7 @@ namespace glabels } else if ( mFilenameNode.isField() ) { - QString filename = mFilenameNode.text( record, variables ); + QString filename = mFilenameNode.text( record, variables ).trimmed(); QImage* image; QSvgRenderer* svgRenderer; QByteArray svg;