Fix Autofill command crash

This commit is contained in:
manongjohn 2022-11-25 09:29:09 -05:00
parent 7a440ac58e
commit 6146412adc

View file

@ -1088,7 +1088,7 @@ void MainWindow::onOpenReportABug() {
void MainWindow::autofillToggle() { void MainWindow::autofillToggle() {
TPaletteHandle *h = TApp::instance()->getCurrentPalette(); TPaletteHandle *h = TApp::instance()->getCurrentPalette();
h->toggleAutopaint(); if (h->getPalette()) h->toggleAutopaint();
} }
void MainWindow::resetRoomsLayout() { void MainWindow::resetRoomsLayout() {