Skip to content

Commit 99d6717

Browse files
committed
Create to_win if needed in Textord::make_spline_rows (fixes issue #3875)
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]>
1 parent 8c573e4 commit 99d6717

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/textord/makerow.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2000,6 +2000,9 @@ void Textord::make_spline_rows(TO_BLOCK *block, // block to do
20002000
bool testing_on) {
20012001
#ifndef GRAPHICS_DISABLED
20022002
ScrollView::Color colour; // of row
2003+
if (testing_on && to_win == nullptr) {
2004+
create_to_win(page_tr_);
2005+
}
20032006
#endif
20042007
TO_ROW_IT row_it = block->get_rows();
20052008

0 commit comments

Comments
 (0)