mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
n-th bug fixing patch from Vincent:
Almost all methods in the GuiPainter class have something like if (!isDrawingEnabled()) return; except GuiPainter::fillRectangle(...) !! Adding this will solve gmane.editors.lyx.devel/109857 gmane.editors.lyx.devel/109859 http://bugzilla.lyx.org/show_bug.cgi?id=4937 http://bugzilla.lyx.org/show_bug.cgi?id=5027 http://bugzilla.lyx.org/show_bug.cgi?id=5235 Maybe also: http://bugzilla.lyx.org/show_bug.cgi?id=5230 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26351 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e3b15701a7
commit
c1fdb12118
@ -231,6 +231,9 @@ void GuiPainter::rectangle(int x, int y, int w, int h,
|
||||
|
||||
void GuiPainter::fillRectangle(int x, int y, int w, int h, ColorCode col)
|
||||
{
|
||||
if (!isDrawingEnabled())
|
||||
return;
|
||||
|
||||
fillRect(x, y, w, h, guiApp->colorCache().get(col));
|
||||
}
|
||||
|
||||
@ -370,7 +373,7 @@ int GuiPainter::text(int x, int y, docstring const & s,
|
||||
if (font() != ff)
|
||||
setFont(ff);
|
||||
// We need to draw the text as LTR as we use our own bidi code.
|
||||
setLayoutDirection(Qt::LeftToRight);
|
||||
QPainter::setLayoutDirection(Qt::LeftToRight);
|
||||
drawText(x, y, str);
|
||||
//LYXERR(Debug::PAINTING, "draw " << string(str.toUtf8())
|
||||
// << " at " << x << "," << y);
|
||||
|
Loading…
Reference in New Issue
Block a user