Fix Ctrl+mouse wheel in ColorBar to modify the size of each color box when UI Scaling > 100%

This commit is contained in:
David Capello 2015-07-06 16:46:12 -03:00
parent b547960984
commit 17bffc81c3

View File

@ -371,7 +371,7 @@ bool PaletteView::onProcessMessage(Message* msg)
if (msg->onlyCtrlPressed()) {
int z = delta.x - delta.y;
setBoxSize(m_boxsize / guiscale() + z);
setBoxSize(m_boxsize + z);
}
else {
gfx::Point scroll = view->getViewScroll();