summaryrefslogtreecommitdiffhomepage
path: root/qfunctionconfigurator
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-04-27 21:25:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-04-27 21:25:28 +0200
commit9f65dc6b10446f9a34741474d765bd012748a3a2 (patch)
treeede5b95cd066abd8ce4121b664431729fbf27e33 /qfunctionconfigurator
parent925b909b53a8e5bd163508f2b0b3b47a8ab69f86 (diff)
Prevent text overlap
Diffstat (limited to 'qfunctionconfigurator')
-rw-r--r--qfunctionconfigurator/qfunctionconfigurator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qfunctionconfigurator/qfunctionconfigurator.cpp b/qfunctionconfigurator/qfunctionconfigurator.cpp
index e3eb962b..555d0cf6 100644
--- a/qfunctionconfigurator/qfunctionconfigurator.cpp
+++ b/qfunctionconfigurator/qfunctionconfigurator.cpp
@@ -218,7 +218,7 @@ QRect scale;
//
// Draw the vertical guidelines
//
- for (i = range.left(); i <= range.right(); i += gDistEGU_Input * pPerEGU_Input) {
+ for (i = range.left(); i <= range.right(); i += gDistEGU_Input * pPerEGU_Input * 2) {
drawLine(&painter, QPointF(i, range.top()), QPointF(i, range.bottom()), pen);
scale.setCoords(i - 10, range.bottom() + 2, i + 10, range.bottom() + 15);
painter.drawText(scale, Qt::AlignCenter, tr("%1").arg(abs(((range.left() - i))/pPerEGU_Input)));