Create to_win if needed in Textord::make_spline_rows (fixes issue #3875) · tesseract-ocr/tesseract@99d6717 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Commit 99d6717
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 sw@weilnetz.de
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2000,6 +2000,9 @@ void Textord::make_spline_rows(TO_BLOCK *block, // block to do | ||
2000 | 2000 | bool testing_on) { |
2001 | 2001 | #ifndef GRAPHICS_DISABLED |
2002 | 2002 | ScrollView::Color colour; // of row |
2003 | +if (testing_on && to_win == nullptr) { | |
2004 | +create_to_win(page_tr_); | |
2005 | + } | |
2003 | 2006 | #endif |
2004 | 2007 | TO_ROW_IT row_it = block->get_rows(); |
2005 | 2008 |