Skip to content

Commit 37ccc82

Browse files
Fix incorrect EditMode limits
1 parent f42e9ed commit 37ccc82

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/editor.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,6 @@ void Editor::updateCursorRectVisibility() {
11961196
auto editAction = getEditAction();
11971197
bool visible = this->settings->cursorTileRectEnabled
11981198
&& mouseInMap
1199-
&& getEditingLayout()
12001199
// Only show the tile cursor for tools that apply at a specific tile
12011200
&& editAction != EditAction::Select
12021201
&& editAction != EditAction::Move;
@@ -2224,7 +2223,7 @@ bool Editor::canAddEvents(const QList<Event*> &events) {
22242223
}
22252224

22262225
void Editor::duplicateSelectedEvents() {
2227-
if (this->selectedEvents.isEmpty() || !project || !map || !current_view || this->getEditingLayout())
2226+
if (this->selectedEvents.isEmpty() || !project || !map || !current_view || this->editMode != EditMode::Events)
22282227
return;
22292228

22302229
QList<Event *> duplicatedEvents;

0 commit comments

Comments
 (0)