From: Pavel Sanda Date: Sat, 13 Nov 2010 23:01:30 +0000 (+0000) Subject: This should be fixed. X-Git-Tag: 2.0.0~1860 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b197c99449e89d39acf053d7ab539c5defb003fb;p=features.git This should be fixed. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36288 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiMathMatrix.cpp b/src/frontends/qt4/GuiMathMatrix.cpp index 63527ed385..932ef71d8e 100644 --- a/src/frontends/qt4/GuiMathMatrix.cpp +++ b/src/frontends/qt4/GuiMathMatrix.cpp @@ -105,6 +105,12 @@ void GuiMathMatrix::slotOK() if (decorationCO->currentIndex() != 0) { int const deco = decorationCO->currentIndex(); QString deco_name; + // FIXME This is very dangerous way of coding. + // The order is defined in .ui file and anybody who will touch it + // will destroy the whole math decorations machinery. + // For better way look on MathDelimiter Size-combo solution and biggui[] array. + // Similarly for the v_align_c stuff -- at least we should push it into + // constructor and have it in one file... switch (deco) { case 1: deco_name = "bmatrix"; break;