Fix bidirectional features of SubPixmapScanner

This commit is contained in:
Elias Batek 2024-10-08 00:21:53 +02:00
parent 8aaaa2a3c2
commit 0bdea48b9b
1 changed files with 12 additions and 2 deletions

View File

@ -1056,7 +1056,12 @@ struct SubPixmapScanner {
///
void popBack() {
_data = _data[0 .. ($ - _width)];
if (_data.length < _feed) {
_data.length = 0;
return;
}
_data = _data[0 .. ($ - _feed)];
}
}
@ -1116,7 +1121,12 @@ struct SubPixmapScannerRW {
///
void popBack() {
_data = _data[0 .. ($ - _width)];
if (_data.length < _feed) {
_data.length = 0;
return;
}
_data = _data[0 .. ($ - _feed)];
}
}