mirror of
https://github.com/wassname/sloth.git
synced 2026-07-07 15:45:20 +08:00
Fix division by zero with empty labelfile
This commit is contained in:
@@ -48,7 +48,7 @@ class BackgroundLoader(QObject):
|
||||
if not self._message_dislayed:
|
||||
self._statusbar.showMessage("Loading annotations...", 5000)
|
||||
self._message_dislayed = True
|
||||
if self._level <= self._max_levels:
|
||||
if self._level <= self._max_levels and self._rows > 0:
|
||||
try:
|
||||
if hasattr(self._iterator, "next"):
|
||||
item = self._iterator.next()
|
||||
|
||||
Reference in New Issue
Block a user