r24379 by jghali - Small code cleanup

scribus-commit scribus-commit at lists.scribus.net
Tue Jan 5 21:27:33 UTC 2021


Author: jghali
Date: Tue Jan  5 21:27:33 2021
New Revision: 24379

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24379
Log:
Small code cleanup

Modified:
    trunk/Scribus/scribus/plugins/import/pdf/pdftextrecognition.h

Modified: trunk/Scribus/scribus/plugins/import/pdf/pdftextrecognition.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24379&path=/trunk/Scribus/scribus/plugins/import/pdf/pdftextrecognition.h
==============================================================================
--- trunk/Scribus/scribus/plugins/import/pdf/pdftextrecognition.h	(original)
+++ trunk/Scribus/scribus/plugins/import/pdf/pdftextrecognition.h	Tue Jan  5 21:27:33 2021
@@ -87,6 +87,8 @@
 	qreal maxWidth = {};
 	QPointF lineBaseXY = QPointF({ }, { }); //updated with the best match left value from all the textRegionLines and the best bottom value from the textRegionLines.segments;
 	QPointF lastXY = QPointF({}, {});
+	std::vector<PdfGlyph> glyphs;
+
 	static bool collinear(qreal a, qreal b);
 	bool isCloseToX(qreal x1, qreal x2);
 	bool isCloseToY(qreal y1, qreal y2);
@@ -97,7 +99,6 @@
 	PdfTextRegion::LineType moveToPoint(QPointF newPoint);
 	PdfTextRegion::LineType addGlyphAtPoint(QPointF newGlyphPoint, PdfGlyph new_glyph);
 	void renderToTextFrame(PageItem* textNode);
-	std::vector<PdfGlyph> glyphs;
 	bool isNew();
 };
 




More information about the scribus-commit mailing list