mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 22:15:35 +00:00
Merge branch 'fixtexindex' into 'master'
Fix texture index search bug See merge request OpenMW/openmw!1080
This commit is contained in:
commit
16d04cf76c
1 changed files with 2 additions and 2 deletions
|
@ -179,10 +179,10 @@ void CSVWidget::TextureBrushWindow::setBrushTexture(std::string brushTexture)
|
|||
undoStack.endMacro();
|
||||
}
|
||||
|
||||
if (index != -1 && !landtexturesCollection.getRecord(index).isDeleted())
|
||||
if (index != -1 && !landtexturesCollection.getRecord(rowInNew).isDeleted())
|
||||
{
|
||||
mBrushTextureLabel = "Selected texture: " + newBrushTextureId + " ";
|
||||
mSelectedBrush->setText(QString::fromStdString(mBrushTextureLabel) + landtexturesCollection.getData(index, landTextureFilename).value<QString>());
|
||||
mSelectedBrush->setText(QString::fromStdString(mBrushTextureLabel) + landtexturesCollection.getData(rowInNew, landTextureFilename).value<QString>());
|
||||
} else
|
||||
{
|
||||
newBrushTextureId = "";
|
||||
|
|
Loading…
Reference in a new issue