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