Skip to content

Commit

Permalink
Update mapobjectmodel.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatino authored Dec 25, 2024
1 parent c23c1d2 commit 5a42545
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tiled/mapobjectmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include "map.h"
#include "mapdocument.h"
#include "objectgroup.h"
#include "invertyaxishelper.h"

#include <QApplication>
#include <QPalette>
Expand Down Expand Up @@ -173,7 +172,7 @@ QVariant MapObjectModel::data(const QModelIndex &index, int role) const
return QLatin1Char('(')
+ QString::number(mapObject->x())
+ QLatin1String(", ")
+ QString::number(InvertYAxisHelper(mapDocument()).tileY(mapObject->y()))
+ QString::number(mapObject->y())
+ QLatin1Char(')');
}
break;
Expand Down

0 comments on commit 5a42545

Please sign in to comment.