Skip to content

Commit

Permalink
Create to_win if needed in Textord::make_spline_rows (fixes issue #3875)
Browse files Browse the repository at this point in the history
There still remain memory leaks for the test scenario, but those are less
urgent as they are related to code which is only used for debugging.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Jul 19, 2022
1 parent 8c573e4 commit 99d6717
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/textord/makerow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2000,6 +2000,9 @@ void Textord::make_spline_rows(TO_BLOCK *block, // block to do
bool testing_on) {
#ifndef GRAPHICS_DISABLED
ScrollView::Color colour; // of row
if (testing_on && to_win == nullptr) {
create_to_win(page_tr_);
}
#endif
TO_ROW_IT row_it = block->get_rows();

Expand Down

0 comments on commit 99d6717

Please sign in to comment.