From 76fafc19b2e8f479937a63db57803afbb39ba2af Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Thu, 30 May 2019 18:49:43 +0000 Subject: [PATCH] Fix Static text size of element exported to dxf git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5897 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/exportdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/exportdialog.cpp b/sources/exportdialog.cpp index 82883c49f..4fa544196 100644 --- a/sources/exportdialog.cpp +++ b/sources/exportdialog.cpp @@ -504,9 +504,9 @@ void ExportDialog::generateDxf(Diagram *diagram, int width, int height, bool kee for(QGraphicsSimpleTextItem *text : primitives.m_texts) { qreal fontSize = text->font().pointSizeF(); - if (fontSize < 0) { + if (fontSize < 0) fontSize = text->font().pixelSize(); - } + fontSize *= Createdxf::yScale; qreal x = elem_pos_x + text->pos().x(); qreal y = elem_pos_y + text->pos().y();