Browse Source

fix memory error in AuswahlListe when MultiStyled Style is not used

Kolja Strohm 9 months ago
parent
commit
b589939c82
1 changed files with 1 additions and 1 deletions
  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++)
         {