]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiLine.cpp
Support for command argument placement after the workarea argument
[lyx.git] / src / frontends / qt4 / GuiLine.cpp
index b4f904a169163a48977d5ab37e89a7f6806aa50e..4ab2da8c942291efe06d70afa43e01b19475121d 100644 (file)
@@ -3,6 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
+ * \author Abdelrazak Younes
  * \author Uwe Stöhr
  *
  * Full author contact details are available in file CREDITS.
@@ -72,11 +73,11 @@ GuiLine::GuiLine(QWidget * parent) : InsetParamsWidget(parent)
 docstring GuiLine::dialogToParams() const
 {
        InsetCommandParams params(insetCode());
-       params["offset"] = from_utf8(widgetsToLength(OffsetLE, OffsetUnitCO));;
+       params["offset"] = from_utf8(widgetsToLength(OffsetLE, OffsetUnitCO));
        params["width"] = from_utf8(widgetsToLength(WidthLE, WidthUnitCO));
        params["height"] = from_utf8(widgetsToLength(HeightLE, HeightUnitCO));
        params.setCmdName("rule");
-       return from_ascii(InsetLine::params2string("line", params));
+       return from_ascii(InsetLine::params2string(params));
 }