summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@nokia.com>2011-03-15 11:21:54 +0100
committerMaurice Kalinowski <maurice.kalinowski@nokia.com>2011-03-15 11:21:54 +0100
commitd10f848e86a1201677aa85b184b95b719e022904 (patch)
tree7ae7f6f1a15ce3dfc46f0c5d29f27b73d2aeec2b /src
parent5f33b2310f3852149c68cf0bdce879458434ede1 (diff)
fix crash bug on correction factor changes
need to set the fixed with on the correct item. Now works on Mac accordingly to the other platforms. Task-number: QTSIM-121 Reviewed-by: owolff
Diffstat (limited to 'src')
-rw-r--r--src/ui/viewconfiguration.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/viewconfiguration.cpp b/src/ui/viewconfiguration.cpp
index 8069bbd..67ce64b 100644
--- a/src/ui/viewconfiguration.cpp
+++ b/src/ui/viewconfiguration.cpp
@@ -82,8 +82,7 @@ void ViewConfiguration::updateLine()
lineWidth = qApp->desktop()->logicalDpiX() / 2.54 * 10 * mCurrentCorrectionFactor;
else
lineWidth = qApp->desktop()->logicalDpiX() * 4 * mCurrentCorrectionFactor;
- mRulerWidget->setFixedWidth(lineWidth);
- ui.scrollArea->setMinimumWidth(lineWidth);
+ ui.scrollArea->setFixedWidth(lineWidth);
mRulerWidget->updateCorrectionFactor(ui.horizontalSlider->value() / 100.);
}