mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-05 21:57:20 +00:00
Fix PaletteView::onPaint() when multiple entries are being dragged
This commit is contained in:
parent
a94fbe7fd8
commit
f6bf4e36a8
@ -433,9 +433,9 @@ void PaletteView::onPaint(ui::PaintEvent& ev)
|
||||
for (int i=0; i<palette->size()-(drag && !m_copy ? picksCount: 0); ++i) {
|
||||
if (drag) {
|
||||
if (!m_copy) {
|
||||
if (m_selectedEntries[i]) {
|
||||
while (i+idxOffset < m_selectedEntries.size() &&
|
||||
m_selectedEntries[i+idxOffset])
|
||||
++idxOffset;
|
||||
}
|
||||
}
|
||||
if (!boxOffset && m_hot.color == i) {
|
||||
boxOffset += picksCount;
|
||||
|
Loading…
Reference in New Issue
Block a user