Bladeren bron

Reset mapDescription scrolling position on change of map / save

This one fixes bug #1974
ArseniyShestakov 11 jaren geleden
bovenliggende
commit
0e346a4f0d
1 gewijzigde bestanden met toevoegingen van 4 en 0 verwijderingen
  1. 4 0
      client/CPreGame.cpp

+ 4 - 0
client/CPreGame.cpp

@@ -2171,6 +2171,10 @@ void InfoCard::changeSelection( const CMapInfo *to )
 		else
 			mapDescription->setText(to->mapHeader->description);
 
+		mapDescription->label->scrollTextTo(0);
+		if (mapDescription->slider)
+			mapDescription->slider->moveToMin();
+
 		if(SEL->screenType != CMenuScreen::newGame && SEL->screenType != CMenuScreen::campaignList) {
 			//difficulty->block(true);
 			difficulty->setSelected(SEL->sInfo.difficulty);