wsd: assert on 0-sized tiles
Change-Id: I10a20bb5a3ad31e368f554bdc5e1701a7ff6a22d Reviewed-on: https://gerrit.libreoffice.org/71072 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
This commit is contained in:
parent
c45dfe194b
commit
2ec5023dbf
1 changed files with 5 additions and 0 deletions
|
@ -1080,6 +1080,11 @@ public:
|
|||
|
||||
LOG_TRC("Encoded tile #" << tileIndex << " at (" << positionX << "," << positionY << ") with oldWireId=" <<
|
||||
tiles[tileIndex].getOldWireId() << ", hash=" << hash << " wireId: " << wireId << " in " << imgSize << " bytes.");
|
||||
if (imgSize == 0)
|
||||
{
|
||||
LOG_ERR("Encoded 0-sized tile!");
|
||||
assert(!"0-sized tile enocded!");
|
||||
}
|
||||
tiles[tileIndex].setWireId(wireId);
|
||||
tiles[tileIndex].setImgSize(imgSize);
|
||||
tileIndex++;
|
||||
|
|
Loading…
Reference in a new issue