X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt%2FGuiMathMatrix.cpp;h=db062781f0cea86389c48a81134c0ee0b9a1da10;hb=ceb03b1815583a7daf6166562f6d928d7d38b356;hp=d339e2c97643877390dcfb1050a890b4c6e9631c;hpb=78f457796c87bd86a10c7b24bf70f9bf60894f4f;p=lyx.git diff --git a/src/frontends/qt/GuiMathMatrix.cpp b/src/frontends/qt/GuiMathMatrix.cpp index d339e2c976..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(