Skip to content

Commit

Permalink
Fix compilation when ENABLE_UI=OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Apr 9, 2024
1 parent 4b6860f commit be2a0f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/commands/cmd_undo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ void UndoCommand::onExecute(Context* context)
editor->setFrame(spritePosition.frame());
}
}
#endif // ENABLE_UI

// Update timeline range. We've to deserialize the DocRange at
// this point when objects (possible layers) are re-created after
Expand All @@ -155,6 +154,7 @@ void UndoCommand::onExecute(Context* context)
if (docRange.read(*docRangeStream))
context->setRange(docRange);
}
#endif // ENABLE_UI

document->generateMaskBoundaries();
document->setExtraCel(ExtraCelRef(nullptr));
Expand Down

0 comments on commit be2a0f9

Please sign in to comment.