- unit = Length::UNIT_NONE;
-
- InsetWrapParams & params = controller().params();
-
- params.width = Length(value, unit);
-
+ widthUnit = Length::UNIT_NONE;
+ double const overhang_value = overhangED->text().toDouble();
+ Length::UNIT overhangUnit = overhangUnitLC->currentLengthItem();
+ if (overhangED->text().isEmpty())
+ overhangUnit = Length::UNIT_NONE;
+
+ 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;