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) :
_percent->setRange(100, 100);
if (_session.cur_samplelimits() > WellLen) {
int min = WellLen*100.0/_session.cur_samplelimits();
int min = ceil(WellLen*100.0/_session.cur_samplelimits());
_percent->setRange(min, 100);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment