mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 06:20:28 +00:00
* draw full line for empty categories
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23627 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
473091fb82
commit
feb96b01aa
@ -7,6 +7,7 @@
|
|||||||
* \author John Levon
|
* \author John Levon
|
||||||
* \author Jean-Marc Lasgouttes
|
* \author Jean-Marc Lasgouttes
|
||||||
* \author Angus Leeming
|
* \author Angus Leeming
|
||||||
|
* \author Stefan Schimanski
|
||||||
* \author Abdelrazak Younes
|
* \author Abdelrazak Younes
|
||||||
*
|
*
|
||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
@ -415,8 +416,11 @@ private:
|
|||||||
int ymid = y - 1 - fm.xHeight() / 2; // -1 for the baseline
|
int ymid = y - 1 - fm.xHeight() / 2; // -1 for the baseline
|
||||||
|
|
||||||
// draw the horizontal line
|
// draw the horizontal line
|
||||||
|
if (!category.isEmpty()) {
|
||||||
painter->drawLine(opt.rect.x(), ymid, left - 1, ymid);
|
painter->drawLine(opt.rect.x(), ymid, left - 1, ymid);
|
||||||
painter->drawLine(right + 1, ymid, opt.rect.right(), ymid);
|
painter->drawLine(right + 1, ymid, opt.rect.right(), ymid);
|
||||||
|
} else
|
||||||
|
painter->drawLine(opt.rect.x(), ymid, opt.rect.right(), ymid);
|
||||||
|
|
||||||
painter->restore();
|
painter->restore();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user