- InsetWrapParams & params = controller().params();
-
- params.width = Length(width_value, widthUnit);
- params.overhang = Length(overhang_value, overhangUnit);
- params.lines = linesSB->value();
-
+ params_.width = Length(width_value, widthUnit);
+
+ if (overhangCB->checkState() == Qt::Checked)
+ params_.overhang = Length(overhang_value, overhangUnit);
+ else
+ // when value is "0" the option is not set in the LaTeX-output
+ // in InsetWrap.cpp
+ params_.overhang = Length("0in");
+
+ if (linesCB->checkState() == Qt::Checked)
+ params_.lines = linesSB->value();
+ else
+ // when value is "0" the option is not set in the LaTeX-output
+ // in InsetWrap.cpp
+ params_.lines = 0;
+
+ bool floatOn = false;
+ if (floatCB->checkState() == Qt::Checked)
+ floatOn = true;