r24940 by jghali - #16743: Crash when clicking on specific text frame in master page
scribus-commit
scribus-commit at lists.scribus.net
Sun Feb 13 21:05:40 UTC 2022
Author: jghali
Date: Sun Feb 13 21:05:40 2022
New Revision: 24940
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24940
Log:
#16743: Crash when clicking on specific text frame in master page
Modified:
trunk/Scribus/scribus/ui/propertiespalette_text.cpp
Modified: trunk/Scribus/scribus/ui/propertiespalette_text.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24940&path=/trunk/Scribus/scribus/ui/propertiespalette_text.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertiespalette_text.cpp (original)
+++ trunk/Scribus/scribus/ui/propertiespalette_text.cpp Sun Feb 13 21:05:40 2022
@@ -553,8 +553,9 @@
QString defaultCharStyle;
if (!newCurrent.parent().isEmpty())
{
- const ParagraphStyle& paraStyle = m_doc->paragraphStyles().get(newCurrent.parent());
- defaultCharStyle = paraStyle.charStyle().parent();
+ const ParagraphStyle* paraStyle = m_doc->paragraphStyles().getPointer(newCurrent.parent());
+ if (paraStyle)
+ defaultCharStyle = paraStyle->charStyle().parent();
if (defaultCharStyle.isEmpty())
defaultCharStyle = CommonStrings::DefaultCharacterStyle;
}
More information about the scribus-commit
mailing list