Fix crash.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-01-21 14:43:45 +02:00
parent 93c84a9dc5
commit d3df063160

View File

@ -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()