瀏覽代碼

fix memory error in AuswahlListe when MultiStyled Style is not used

Kolja Strohm 9 月之前
父節點
當前提交
b589939c82
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Liste.cpp

+ 1 - 1
Liste.cpp

@@ -610,7 +610,7 @@ void AuswahlListe::render(Bild& zRObj) // zeichnet nach zRObj
         if (vertikalScrollBar && ZeichnungHintergrund::hatStyle(Style::VScroll))
             dy -= vertikalScrollBar->getScroll();
         int mdy = innenSize.y + rbr;
-        auto style = styles->begin();
+        auto style = styles ? styles->begin() : Array<__int64>().begin();
         int i = 0;
         for (auto tf = tfListe->begin(); tf; tf++, style++, i++)
         {