From b197c99449e89d39acf053d7ab539c5defb003fb Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Sat, 13 Nov 2010 23:01:30 +0000 Subject: [PATCH] This should be fixed. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36288 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiMathMatrix.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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;