1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Reset mapDescription scrolling position on change of map / save

This one fixes bug #1974
This commit is contained in:
ArseniyShestakov 2014-11-24 15:56:33 +03:00
parent 53c7a3cfcb
commit 0e346a4f0d

View File

@ -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);