Skip to content

Commit

Permalink
Trim leading and trailing spaces from image filenames from merge reco…
Browse files Browse the repository at this point in the history
…rds. (#76)
  • Loading branch information
jimevins committed Nov 12, 2019
1 parent 7a02c0b commit 75e613e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/ModelImageObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 75e613e

Please sign in to comment.