Date:2013-07-04 05:45:38 (10 years 8 months ago)
Author:Paul Cercueil
Commit:abc461bf955184de75af31e750c9fe005c8f4872
Message:Fix build on 32-bit targets...

This fixes commit 59a456690b3b980ef6aa9365ab78fcc47e0d42dc
which introduced a regression.
Files: src/textdialog.cpp (1 diff)
src/textmanualdialog.cpp (1 diff)

Change Details

src/textdialog.cpp
139139                if (firstRow + rowsPerPage*2 -1 < text->size()) {
140140                    firstRow += rowsPerPage-1;
141141                } else {
142                    firstRow = max(0lu, text->size() - rowsPerPage);
142                    firstRow = max(0ul, (unsigned long) (text->size() - rowsPerPage));
143143                }
144144                break;
145145            case InputManager::SETTINGS:
src/textmanualdialog.cpp
133133                break;
134134            case InputManager::ALTRIGHT:
135135                if (firstRow + rowsPerPage*2 -1 < pages[page].text.size()) firstRow += rowsPerPage-1;
136                else firstRow = max(0lu, pages[page].text.size() - rowsPerPage);
136                else firstRow = max(0ul, (unsigned long) (pages[page].text.size() - rowsPerPage));
137137                break;
138138            case InputManager::CANCEL:
139139            case InputManager::SETTINGS:

Archive Download the corresponding diff file



interactive