After the access to the window, I set cursor to the Description and pressed enter 10 times and then one space. Scrollbar popped on and Valgrind detects quite a lot "Conditional jump or move depends on uninitialised value(s)" cases. The below I added just a few of those.
==8357== Conditional jump or move depends on uninitialised value(s)
==8357== at 0xAE9153: RenderTarget::clip(Rect<float>&) const (rendertarget.cc:373)
==8357== by 0xAE8AD5: RenderTarget::tile(Rect<int> const&, Image const*, Vector2<int> const&, BlendMode) (rendertarget.cc:235)
==8357== by 0xD1A982: UI::Scrollbar::draw_button(RenderTarget&, UI::Scrollbar::Area, Rect<int> const&) (scrollbar.cc:236)
==8357== by 0xD1C3AA: UI::Scrollbar::draw(RenderTarget&) (scrollbar.cc:351)
==8357== by 0xD15365: UI::Panel::do_draw_inner(RenderTarget&) (panel.cc:725)
==8357== Conditional jump or move depends on uninitialised value(s)
==8357== at 0xAE8BCB: RenderTarget::tile(Rect<int> const&, Image const*, Vector2<int> const&, BlendMode) (rendertarget.cc:264)
==8357== by 0xD1A982: UI::Scrollbar::draw_button(RenderTarget&, UI::Scrollbar::Area, Rect<int> const&) (scrollbar.cc:236)
==8357== by 0xD1C3AA: UI::Scrollbar::draw(RenderTarget&) (scrollbar.cc:351)
==8357== by 0xD15365: UI::Panel::do_draw_inner(RenderTarget&) (panel.cc:725)
==8357== Conditional jump or move depends on uninitialised value(s)
==8357== at 0xAE91D5: RenderTarget::clip(Rect<float>&) const (rendertarget.cc:380)
==8357== by 0xAE8427: RenderTarget::brighten_rect(Rect<int> const&, int) (rendertarget.cc:136)
==8357== by 0xD1AD63: UI::Scrollbar::draw_button(RenderTarget&, UI::Scrollbar::Area, Rect<int> const&) (scrollbar.cc:262)
==8357== by 0xD1C3AA: UI::Scrollbar::draw(RenderTarget&) (scrollbar.cc:351)
==8357== by 0xD15365: UI::Panel::do_draw_inner(RenderTarget&) (panel.cc:725)
==8357== Conditional jump or move depends on uninitialised value(s)
==8357== at 0xAE9296: RenderTarget::clip(Rect<float>&) const (rendertarget.cc:389)
==8357== by 0xAE8427: RenderTarget::brighten_rect(Rect<int> const&, int) (rendertarget.cc:136)
==8357== by 0xD1AE2C: UI::Scrollbar::draw_button(RenderTarget&, UI::Scrollbar::Area, Rect<int> const&) (scrollbar.cc:264)
==8357== by 0xD1C3AA: UI::Scrollbar::draw(RenderTarget&) (scrollbar.cc:351)
==8357== by 0xD15365: UI::Panel::do_draw_inner(RenderTarget&) (panel.cc:725)
Then I moved cursor back to the first line and pressed enter few times. Instead of seeing new lines the cursor moved forward.
After the access to the window, I set cursor to the Description and pressed enter 10 times and then one space. Scrollbar popped on and Valgrind detects quite a lot "Conditional jump or move depends on uninitialised value(s)" cases. The below I added just a few of those.
==8357== Conditional jump or move depends on uninitialised value(s) :clip(Rect< float>& ) const (rendertarget. cc:373) :tile(Rect< int> const&, Image const*, Vector2<int> const&, BlendMode) (rendertarget. cc:235) :draw_button( RenderTarget& , UI::Scrollbar: :Area, Rect<int> const&) (scrollbar.cc:236) :draw(RenderTar get&) (scrollbar.cc:351) :do_draw_ inner(RenderTar get&) (panel.cc:725)
==8357== at 0xAE9153: RenderTarget:
==8357== by 0xAE8AD5: RenderTarget:
==8357== by 0xD1A982: UI::Scrollbar:
==8357== by 0xD1C3AA: UI::Scrollbar:
==8357== by 0xD15365: UI::Panel:
==8357== Conditional jump or move depends on uninitialised value(s) :tile(Rect< int> const&, Image const*, Vector2<int> const&, BlendMode) (rendertarget. cc:264) :draw_button( RenderTarget& , UI::Scrollbar: :Area, Rect<int> const&) (scrollbar.cc:236) :draw(RenderTar get&) (scrollbar.cc:351) :do_draw_ inner(RenderTar get&) (panel.cc:725)
==8357== at 0xAE8BCB: RenderTarget:
==8357== by 0xD1A982: UI::Scrollbar:
==8357== by 0xD1C3AA: UI::Scrollbar:
==8357== by 0xD15365: UI::Panel:
==8357== Conditional jump or move depends on uninitialised value(s) :clip(Rect< float>& ) const (rendertarget. cc:380) :brighten_ rect(Rect< int> const&, int) (rendertarget. cc:136) :draw_button( RenderTarget& , UI::Scrollbar: :Area, Rect<int> const&) (scrollbar.cc:262) :draw(RenderTar get&) (scrollbar.cc:351) :do_draw_ inner(RenderTar get&) (panel.cc:725)
==8357== at 0xAE91D5: RenderTarget:
==8357== by 0xAE8427: RenderTarget:
==8357== by 0xD1AD63: UI::Scrollbar:
==8357== by 0xD1C3AA: UI::Scrollbar:
==8357== by 0xD15365: UI::Panel:
==8357== Conditional jump or move depends on uninitialised value(s) :clip(Rect< float>& ) const (rendertarget. cc:389) :brighten_ rect(Rect< int> const&, int) (rendertarget. cc:136) :draw_button( RenderTarget& , UI::Scrollbar: :Area, Rect<int> const&) (scrollbar.cc:264) :draw(RenderTar get&) (scrollbar.cc:351) :do_draw_ inner(RenderTar get&) (panel.cc:725)
==8357== at 0xAE9296: RenderTarget:
==8357== by 0xAE8427: RenderTarget:
==8357== by 0xD1AE2C: UI::Scrollbar:
==8357== by 0xD1C3AA: UI::Scrollbar:
==8357== by 0xD15365: UI::Panel:
Then I moved cursor back to the first line and pressed enter few times. Instead of seeing new lines the cursor moved forward.