r24652 by jghali - #16567: Import PDF as text should create 1-column text frames

scribus-commit scribus-commit at lists.scribus.net
Sat May 29 13:52:52 UTC 2021


Author: jghali
Date: Sat May 29 13:52:52 2021
New Revision: 24652

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24652
Log:
#16567: Import PDF as text should create 1-column text frames

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

Modified: trunk/Scribus/scribus/plugins/import/pdf/pdftextrecognition.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24652&path=/trunk/Scribus/scribus/plugins/import/pdf/pdftextrecognition.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/pdf/pdftextrecognition.cpp	(original)
+++ trunk/Scribus/scribus/plugins/import/pdf/pdftextrecognition.cpp	Sat May 29 13:52:52 2021
@@ -519,6 +519,9 @@
 	cStyle.setScaleV(1000.0);
 	cStyle.setHyphenChar(SpecialChars::BLANK.unicode());
 
+	// #16567: Override user prefs
+	textNode->setColumns(1);
+
 	Selection tempSelection(nullptr, false);
 	tempSelection.addItem(textNode);
 	m_doc->itemSelection_ApplyParagraphStyle(pStyle, &tempSelection);




More information about the scribus-commit mailing list