Re: r21495 - /lyx-devel/trunk/src/frontends/qt4/GuiPainter.cpp

2007-11-08 Thread Andre Poenitz
On Thu, Nov 08, 2007 at 08:50:49AM +0100, Stefan Schimanski wrote: > > Am 08.11.2007 um 01:07 schrieb Andre Poenitz: > >> On Thu, Nov 08, 2007 at 12:01:16AM +0100, Stefan Schimanski wrote: Nope, that's Stefan's work... Stefan? > - return QColor(v*minr+(1-v)*maxr, v*ming+(1-v)*max

Re: r21495 - /lyx-devel/trunk/src/frontends/qt4/GuiPainter.cpp

2007-11-08 Thread Stefan Schimanski
Am 08.11.2007 um 10:49 schrieb Abdelrazak Younes: Stefan Schimanski wrote: Am 08.11.2007 um 10:20 schrieb Abdelrazak Younes: Stefan Schimanski wrote: Am 08.11.2007 um 09:33 schrieb Abdelrazak Younes: By the way, about the monochrome mode, it seems that the mode could not be leaved after

Re: r21495 - /lyx-devel/trunk/src/frontends/qt4/GuiPainter.cpp

2007-11-08 Thread Abdelrazak Younes
Stefan Schimanski wrote: Am 08.11.2007 um 10:20 schrieb Abdelrazak Younes: Stefan Schimanski wrote: Am 08.11.2007 um 09:33 schrieb Abdelrazak Younes: By the way, about the monochrome mode, it seems that the mode could not be leaved after ArgumentProxy::draw(): void draw(PainterInfo & pi,

Re: r21495 - /lyx-devel/trunk/src/frontends/qt4/GuiPainter.cpp

2007-11-08 Thread Stefan Schimanski
Am 08.11.2007 um 10:20 schrieb Abdelrazak Younes: Stefan Schimanski wrote: Am 08.11.2007 um 09:33 schrieb Abdelrazak Younes: By the way, about the monochrome mode, it seems that the mode could not be leaved after ArgumentProxy::draw(): void draw(PainterInfo & pi, int x, int y) const {

Re: r21495 - /lyx-devel/trunk/src/frontends/qt4/GuiPainter.cpp

2007-11-08 Thread Abdelrazak Younes
Stefan Schimanski wrote: Am 08.11.2007 um 09:33 schrieb Abdelrazak Younes: By the way, about the monochrome mode, it seems that the mode could not be leaved after ArgumentProxy::draw(): void draw(PainterInfo & pi, int x, int y) const { if (mathMacro_.editing()) { pi.pain.leaveMo

Re: r21495 - /lyx-devel/trunk/src/frontends/qt4/GuiPainter.cpp

2007-11-08 Thread Stefan Schimanski
Am 08.11.2007 um 09:33 schrieb Abdelrazak Younes: Stefan Schimanski wrote: Am 08.11.2007 um 01:07 schrieb Andre Poenitz: On Thu, Nov 08, 2007 at 12:01:16AM +0100, Stefan Schimanski wrote: Nope, that's Stefan's work... Stefan? -return QColor(v*minr+(1-v)*maxr, v*ming+(1-v)*maxg, v*minb+

Re: r21495 - /lyx-devel/trunk/src/frontends/qt4/GuiPainter.cpp

2007-11-08 Thread Abdelrazak Younes
Stefan Schimanski wrote: Am 08.11.2007 um 01:07 schrieb Andre Poenitz: On Thu, Nov 08, 2007 at 12:01:16AM +0100, Stefan Schimanski wrote: Nope, that's Stefan's work... Stefan? -return QColor(v*minr+(1-v)*maxr, v*ming+(1-v)*maxg, v*minb+(1-v)*maxb); +QColor c; +c.setRgbF(v*minr+

Re: r21495 - /lyx-devel/trunk/src/frontends/qt4/GuiPainter.cpp

2007-11-07 Thread Stefan Schimanski
Am 08.11.2007 um 01:07 schrieb Andre Poenitz: On Thu, Nov 08, 2007 at 12:01:16AM +0100, Stefan Schimanski wrote: Nope, that's Stefan's work... Stefan? - return QColor(v*minr+(1-v)*maxr, v*ming+(1-v)*maxg, v*minb+(1- v)*maxb); + QColor c; + c.setRgbF(v*minr+(1-v)*maxr, v*ming+(1-v)*max

Re: r21495 - /lyx-devel/trunk/src/frontends/qt4/GuiPainter.cpp

2007-11-07 Thread Andre Poenitz
On Thu, Nov 08, 2007 at 12:01:16AM +0100, Stefan Schimanski wrote: >> Nope, that's Stefan's work... >> >> Stefan? >>> - return QColor(v*minr+(1-v)*maxr, v*ming+(1-v)*maxg, v*minb+(1-v)*maxb); >>> + QColor c; >>> + c.setRgbF(v*minr+(1-v)*maxr, v*ming+(1-v)*maxg, v*minb+(1-v)*maxb); >>> + ret

Re: r21495 - /lyx-devel/trunk/src/frontends/qt4/GuiPainter.cpp

2007-11-07 Thread Stefan Schimanski
Nope, that's Stefan's work... Stefan? - return QColor(v*minr+(1-v)*maxr, v*ming+(1-v)*maxg, v*minb+(1- v)*maxb); + QColor c; + c.setRgbF(v*minr+(1-v)*maxr, v*ming+(1-v)*maxg, v*minb+(1-v)*maxb); + return c; } That was me most probably, yes. Is there an advantage in this chan

Re: r21495 - /lyx-devel/trunk/src/frontends/qt4/GuiPainter.cpp

2007-11-07 Thread Abdelrazak Younes
[EMAIL PROTECTED] wrote: Author: poenitz Date: Wed Nov 7 21:44:36 2007 New Revision: 21495 URL: http://www.lyx.org/trac/changeset/21495 Log: Abdel? Nope, that's Stefan's work... Stefan? Modified: lyx-devel/trunk/src/frontends/qt4/GuiPainter.cpp Modified: lyx-devel/trunk/src/frontends