mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 19:51:49 +00:00
MACGUI: Added sanity check to 9-patch recalculatuon
This commit is contained in:
parent
e0c1cb063c
commit
547122f738
@ -128,7 +128,7 @@ void NinePatchSide::calcOffsets(int len) {
|
||||
dest_offset += _m[i]->dest_length;
|
||||
}
|
||||
|
||||
if (remaining_stretch) {
|
||||
if (remaining_stretch && _m.size()) {
|
||||
_m[j]->dest_length += remaining_stretch;
|
||||
if (j + 1 < _m.size())
|
||||
_m[j + 1]->dest_offset += remaining_stretch;
|
||||
|
Loading…
x
Reference in New Issue
Block a user