diff --git a/src/tools/translation/inspector/ImageView.cpp b/src/tools/translation/inspector/ImageView.cpp index c55b77699b..2cd7be2a75 100644 --- a/src/tools/translation/inspector/ImageView.cpp +++ b/src/tools/translation/inspector/ImageView.cpp @@ -425,6 +425,9 @@ ImageView::SetImage(BMessage *pmsg) // determine what type the image is translator_info tinfo; BMessage ioExtension; + if (ref != fcurrentRef) + // if new image, reset to first document + fdocumentIndex = 1; chk = ioExtension.AddInt32("/documentIndex", fdocumentIndex); chk = proster->Identify(&file, &ioExtension, &tinfo, 0, NULL, B_TRANSLATOR_BITMAP);