From 188a5216d5f38fe1bd80d4fe2dfc1768f178d979 Mon Sep 17 00:00:00 2001 From: Person Date: Sat, 11 Mar 2017 10:26:00 -0800 Subject: [PATCH] --Bug fixes -Deleting, then overwriting a palette used the wrong index and was not updating. --- Source/Fractorium/PaletteEditor/PaletteEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Fractorium/PaletteEditor/PaletteEditor.cpp b/Source/Fractorium/PaletteEditor/PaletteEditor.cpp index 72a9373..6a2743a 100644 --- a/Source/Fractorium/PaletteEditor/PaletteEditor.cpp +++ b/Source/Fractorium/PaletteEditor/PaletteEditor.cpp @@ -398,7 +398,7 @@ void PaletteEditor::OnDeletePaletteButtonClicked() m_PaletteList->Delete(m_CurrentPaletteFilePath, m_PaletteIndex); ::FillPaletteTable(m_CurrentPaletteFilePath, table, m_PaletteList); emit PaletteFileChanged(); - OnPaletteCellClicked(0, table->rowCount() - 1); + OnPaletteCellClicked(table->rowCount() - 1, 1); } }