Fixed issue with HeaderCtrl crashing in Linux

git-svn-id: svn://ultimatepp.org/upp/trunk@9677 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-04-07 20:45:14 +00:00
parent e1b64aeb46
commit f10c78ee68

View file

@ -443,7 +443,7 @@ void HeaderCtrl::Paint(Draw& w) {
}
Column h;
h.header = this;
h.Paint(first, w, x, 0, 99999, sz.cy, false, false, false);
h.Paint(first, w, x, 0, sz.cx - x, sz.cy, false, false, false);
if(isdrag) {
w.DrawImage(dragx + dragd, 0, dragtab);
DrawVertDrop(w, IsNull(dx) ? sz.cx - 2 : dx - (dx > 0), 0, sz.cy);