* BUG: Draw.Style.Separator correctly honors verticality.


git-svn-id: svn://localhost/gambas/trunk@3100 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2010-08-11 09:24:04 +00:00
parent 989e4da2dc
commit 3965ebc8a8

View file

@ -1045,7 +1045,7 @@ static void style_separator(GB_DRAW *d, int x, int y, int w, int h, int vertical
QStyleOption opt;
init_option(opt, x, y, w, h, state);
if (!vertical)
if (vertical)
opt.state |= QStyle::State_Horizontal;
QApplication::style()->drawPrimitive(QStyle::PE_IndicatorToolBarSeparator, &opt, DP(d));