From 56b7014eafba6af49e5cbd4116f55c08aa29a3d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= <tumic@cbox.cz> Date: Tue, 29 Sep 2020 22:03:26 +0200 Subject: [PATCH] Unify unsupported data handling --- src/map/IMG/huffmanstream.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map/IMG/huffmanstream.cpp b/src/map/IMG/huffmanstream.cpp index d71b3fc0..e8cda45d 100644 --- a/src/map/IMG/huffmanstream.cpp +++ b/src/map/IMG/huffmanstream.cpp @@ -13,10 +13,10 @@ bool HuffmanStreamF::init(bool line) quint32 eb; if (!_bs.read(1, eb)) return false; - if (eb) { - qWarning() << "Extended lines/polygons not supported"; + + Q_ASSERT(!eb); + if (eb) return false; - } return true; }