mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-17 13:20:45 +00:00
Fix destination index in status bar text when moving palette colors
This commit is contained in:
parent
7f2082e89c
commit
7250e6adc4
@ -919,15 +919,10 @@ void PaletteView::setStatusBar()
|
||||
|
||||
case State::DRAGGING_OUTLINE:
|
||||
if (m_hot.part == Hit::COLOR) {
|
||||
int picks = m_selectedEntries.picks();
|
||||
int firstPick = m_selectedEntries.firstPick();
|
||||
|
||||
int destIndex = MAX(0, m_hot.color);
|
||||
if (!m_copy && destIndex <= firstPick)
|
||||
destIndex -= picks;
|
||||
|
||||
int palSize = currentPalette()->size();
|
||||
int newPalSize =
|
||||
const int picks = m_selectedEntries.picks();
|
||||
const int destIndex = MAX(0, m_hot.color);
|
||||
const int palSize = currentPalette()->size();
|
||||
const int newPalSize =
|
||||
(m_copy ? MAX(palSize + picks, destIndex + picks):
|
||||
MAX(palSize, destIndex + picks));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user