diff --git a/core/textpage.cpp b/core/textpage.cpp index b7e9be761..86aef8f20 100644 --- a/core/textpage.cpp +++ b/core/textpage.cpp @@ -1343,7 +1343,7 @@ void TextPagePrivate::makeAndSortLines(const TextList &wordsTmp, SortedTextList /** * Calculate Statistical information from the lines we made previously */ -void TextPagePrivate::calculateStatisticalInformation(const SortedTextList &lines, const LineRect &line_rects, int *word_spacing, int *line_spacing, int *col_spacing) +void TextPagePrivate::calculateStatisticalInformation(const SortedTextList &lines, const LineRect &line_rects, int *word_spacing, int *line_spacing, int *col_spacing) const { /** * For the region, defined by line_rects and lines @@ -1537,8 +1537,8 @@ RegionTextList TextPagePrivate::XYCutForBoundingBoxes(int tcx, int tcy) * 1. calculation of projection profiles */ // allocate the size of proj profiles and initialize with 0 - int size_proj_y = node.area().height() ; - int size_proj_x = node.area().width() ; + int size_proj_y = node.area().height(); + int size_proj_x = node.area().width(); //dynamic memory allocation QVarLengthArray proj_on_xaxis(size_proj_x); QVarLengthArray proj_on_yaxis(size_proj_y); diff --git a/core/textpage_p.h b/core/textpage_p.h index 97eeea730..953e9d1f0 100644 --- a/core/textpage_p.h +++ b/core/textpage_p.h @@ -92,7 +92,7 @@ class TextPagePrivate * we made */ void calculateStatisticalInformation(const SortedTextList &lines, const LineRect &line_rects, int *word_spacing, - int *line_spacing, int *column_spacing); + int *line_spacing, int *column_spacing) const; /** * Functions necessary for document file segmentation into text regions for document layout