Fix formatting of string to not append an int interpreted as a QChar

This commit is contained in:
baldurk
2017-09-13 14:49:42 +01:00
parent aabea30012
commit 4e092940fc
+1 -1
View File
@@ -3166,7 +3166,7 @@ void TextureViewer::on_mipLevel_currentIndexChanged(int index)
ui->sliceFace->clear();
for(uint32_t i = 0; i < numSlices; i++)
ui->sliceFace->addItem(tr("Slice ") + i);
ui->sliceFace->addItem(tr("Slice %1").arg(i));
// changing sliceFace index will handle updating range & re-picking
ui->sliceFace->setCurrentIndex((int)qBound(0U, newSlice, numSlices - 1));