mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-06 06:58:15 +00:00
Fix tile button with negative base index
This commit is contained in:
parent
505aa6119a
commit
2501f5aa3c
@ -149,7 +149,8 @@ void TileButton::onPaint(PaintEvent& ev)
|
|||||||
if (site.tileset())
|
if (site.tileset())
|
||||||
baseIndex = site.tileset()->baseIndex();
|
baseIndex = site.tileset()->baseIndex();
|
||||||
|
|
||||||
std::string str = fmt::format("{}", doc::tile_geti(m_tile) + baseIndex - 1);
|
std::string str = fmt::format(
|
||||||
|
"{}", int(doc::tile_geti(m_tile)) + baseIndex - 1);
|
||||||
setTextQuiet(str.c_str());
|
setTextQuiet(str.c_str());
|
||||||
|
|
||||||
// TODO calc a proper color for the text
|
// TODO calc a proper color for the text
|
||||||
|
Loading…
Reference in New Issue
Block a user