mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 12:53:51 +00:00
Don't assume icons have a period in their filename
This commit is contained in:
parent
1f6055d54b
commit
3cff7b1e42
1 changed files with 3 additions and 2 deletions
|
@ -121,7 +121,8 @@ void ItemView::update()
|
|||
// image
|
||||
MyGUI::ImageBox* image = backgroundWidget->createWidget<MyGUI::ImageBox>("ImageBox",
|
||||
MyGUI::IntCoord(5, 5, 32, 32), MyGUI::Align::Default);
|
||||
int pos = path.rfind(".");
|
||||
std::string::size_type pos = path.rfind(".");
|
||||
if(pos != std::string::npos)
|
||||
path.erase(pos);
|
||||
path.append(".dds");
|
||||
image->setImageTexture(path);
|
||||
|
|
Loading…
Reference in a new issue