Fix crash.
--HG-- branch : develop
This commit is contained in:
parent
93c84a9dc5
commit
d3df063160
|
@ -1602,12 +1602,15 @@ void MainWindow::ExportToCSVData(const QString &fileName, bool withHeader, int m
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void MainWindow::ScaleChanged(qreal scale)
|
void MainWindow::ScaleChanged(qreal scale)
|
||||||
{
|
{
|
||||||
doubleSpinBoxScale->blockSignals(true);
|
if (not doubleSpinBoxScale.isNull())
|
||||||
doubleSpinBoxScale->setMaximum(qFloor(VMainGraphicsView::MaxScale()*1000)/10.0);
|
{
|
||||||
doubleSpinBoxScale->setMinimum(qFloor(VMainGraphicsView::MinScale()*1000)/10.0);
|
doubleSpinBoxScale->blockSignals(true);
|
||||||
doubleSpinBoxScale->setValue(qFloor(scale*1000)/10.0);
|
doubleSpinBoxScale->setMaximum(qFloor(VMainGraphicsView::MaxScale()*1000)/10.0);
|
||||||
doubleSpinBoxScale->setSingleStep(1);
|
doubleSpinBoxScale->setMinimum(qFloor(VMainGraphicsView::MinScale()*1000)/10.0);
|
||||||
doubleSpinBoxScale->blockSignals(false);
|
doubleSpinBoxScale->setValue(qFloor(scale*1000)/10.0);
|
||||||
|
doubleSpinBoxScale->setSingleStep(1);
|
||||||
|
doubleSpinBoxScale->blockSignals(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user