Fix RIGHTCENTER placement of the toolbar. Instead of subtracting borderwidth (bw) from (frame.height))/2 they were multiplied causing wrong placement for this case.

This commit is contained in:
Peter Ganzhorn 2015-05-01 13:41:43 +02:00 committed by Mathias Gumz
parent 949e973dd2
commit e117f5acd6

View file

@ -677,7 +677,7 @@ void Toolbar::setPlacement(Toolbar::Placement where) {
break;
case RIGHTCENTER:
frame.x += head_w - static_cast<int>(frame.width) - bw*2;
frame.y += (head_h - static_cast<int>(frame.height))/2 * bw;
frame.y += (head_h - static_cast<int>(frame.height))/2 - bw;
frame.x_hidden += static_cast<int>(frame.width) + bw - pixel;
break;
case RIGHTTOP: