Commit e24b0d44 authored by DreamSourceLab's avatar DreamSourceLab

Fix crash issue when enable lissajous figure in certain case

parent f9f0507a
...@@ -57,7 +57,7 @@ LissajousOptions::LissajousOptions(SigSession &session, QWidget *parent) : ...@@ -57,7 +57,7 @@ LissajousOptions::LissajousOptions(SigSession &session, QWidget *parent) :
_percent->setRange(100, 100); _percent->setRange(100, 100);
_percent->setEnabled(false); _percent->setEnabled(false);
if (_session.cur_samplelimits() > WellLen) { if (_session.cur_samplelimits() > WellLen) {
int min = WellLen*100.0/_session.cur_samplelimits(); int min = ceil(WellLen*100.0/_session.cur_samplelimits());
_percent->setEnabled(true); _percent->setEnabled(true);
_percent->setRange(min, 100); _percent->setRange(min, 100);
_percent->setValue(min); _percent->setValue(min);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment