From c90c09e4f181473e0f1ddf4c0424c73a7b1d52d3 Mon Sep 17 00:00:00 2001 From: abhishekm71 Date: Sat, 18 Jan 2014 13:03:42 +0000 Subject: [PATCH] DXF: Unnecessary "_" text removed. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2747 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/exportdialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sources/exportdialog.cpp b/sources/exportdialog.cpp index 36f930c62..298fdbae0 100644 --- a/sources/exportdialog.cpp +++ b/sources/exportdialog.cpp @@ -422,7 +422,7 @@ void ExportDialog::generateDxf(Diagram *diagram, int width, int height, bool kee QStringList lines = dti -> toPlainText().split('\n'); y += (fontSize/2) * (lines.count()-1); foreach (QString line, lines) { - if (line.size() > 0) + if (line.size() > 0 && line != "_" ) Createdxf::drawText(file_path, line, x, y, fontSize, dti -> rotationAngle(), 0 ); y -= fontSize*1.06; } @@ -514,7 +514,8 @@ void ExportDialog::generateDxf(Diagram *diagram, int width, int height, bool kee qreal y = Createdxf::sheetHeight - (textItem -> pos().y() * Createdxf::yScale) - fontSize; QStringList lines = textItem->toPlainText().split('\n'); foreach (QString line, lines) { - Createdxf::drawText(file_path, line, x, y, fontSize, textItem -> rotationAngle(), 0 ); + if (line.size() > 0 && line != "_" ) + Createdxf::drawText(file_path, line, x, y, fontSize, textItem -> rotationAngle(), 0 ); y -= fontSize*1.06; }