Resolved issue SANKORE-412

preferencesAboutTextFull
shibakaneki 13 years ago
parent ce670e0d2a
commit 44228272da
  1. 14
      src/gui/UBDocumentNavigator.cpp

@ -450,11 +450,13 @@ void UBDocumentNavigator::onSelectionChanged()
*/ */
void UBDocumentNavigator::onMovedToIndex(int index) void UBDocumentNavigator::onMovedToIndex(int index)
{ {
UBSceneThumbnailNavigPixmap* pItem = dynamic_cast<UBSceneThumbnailNavigPixmap*>(mThumbnails.at(index)); if(index < mThumbnails.size()){
if(NULL != pItem) UBSceneThumbnailNavigPixmap* pItem = dynamic_cast<UBSceneThumbnailNavigPixmap*>(mThumbnails.at(index));
{ if(NULL != pItem)
mCrntItem = pItem; {
mCrntItem->setSelected(true); mCrntItem = pItem;
centerOn(mCrntItem); mCrntItem->setSelected(true);
centerOn(mCrntItem);
}
} }
} }

Loading…
Cancel
Save