X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt%2FGuiMathMatrix.cpp;h=db062781f0cea86389c48a81134c0ee0b9a1da10;hb=8863d6d785358680d05b4b34b35ca09a15cccb82;hp=92ba6fc09cfe8fe2b8a3e9eea5befb8b46dcdff8;hpb=49098aa3189c8cc17ce53171eb769c2a192f6e8d;p=lyx.git diff --git a/src/frontends/qt/GuiMathMatrix.cpp b/src/frontends/qt/GuiMathMatrix.cpp index 92ba6fc09c..db062781f0 100644 --- a/src/frontends/qt/GuiMathMatrix.cpp +++ b/src/frontends/qt/GuiMathMatrix.cpp @@ -101,7 +101,7 @@ GuiMathMatrix::GuiMathMatrix(GuiView & lv) void GuiMathMatrix::columnsChanged(int) { - int const nx = int(columnsSB->value()); + int const nx = columnsSB->value(); halignED->setText(QString(nx, 'c')); } @@ -159,7 +159,7 @@ void GuiMathMatrix::slotOK() // otherwise create just a standard AMS matrix if (sh.contains('l') || sh.contains('r') || sh.contains('|')) { string const str_ams = fromqstr( - QString("%1 %2 %3").arg(int(1)).arg(int(1)).arg(deco_name)); + QString("%1 %2 %3").arg(1).arg(1).arg(deco_name)); dispatch(FuncRequest(LFUN_MATH_AMS_MATRIX, str_ams)); } else { string const str_ams = fromqstr( @@ -181,9 +181,6 @@ void GuiMathMatrix::slotClose() } -Dialog * createGuiMathMatrix(GuiView & lv) { return new GuiMathMatrix(lv); } - - } // namespace frontend } // namespace lyx