[qet] [2747] DXF: Unnecessary "_" text removed. |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2747
Author: abhishekm71
Date: 2014-01-18 14:03:42 +0100 (Sat, 18 Jan 2014)
Log Message:
-----------
DXF: Unnecessary "_" text removed.
Modified Paths:
--------------
trunk/sources/exportdialog.cpp
Modified: trunk/sources/exportdialog.cpp
===================================================================
--- trunk/sources/exportdialog.cpp 2014-01-18 12:23:35 UTC (rev 2746)
+++ trunk/sources/exportdialog.cpp 2014-01-18 13:03:42 UTC (rev 2747)
@@ -422,7 +422,7 @@
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 @@
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;
}