소스 검색

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++)
         {