r24738 by jghali - #16660: Fails to compile in gitlab CI
scribus-commit
scribus-commit at lists.scribus.net
Thu Oct 7 19:38:41 UTC 2021
Author: jghali
Date: Thu Oct 7 19:38:41 2021
New Revision: 24738
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24738
Log:
#16660: Fails to compile in gitlab CI
Modified:
trunk/Scribus/scribus/ui/colorsandfills.cpp
Modified: trunk/Scribus/scribus/ui/colorsandfills.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24738&path=/trunk/Scribus/scribus/ui/colorsandfills.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/colorsandfills.cpp (original)
+++ trunk/Scribus/scribus/ui/colorsandfills.cpp Thu Oct 7 19:38:41 2021
@@ -931,7 +931,11 @@
QStringList ColorsAndFillsDialog::getUsedPatternsHelper(const QString& pattern, QStringList &results) const
{
- const ScPattern *pat = &dialogPatterns[pattern];
+ auto patternIt = dialogPatterns.find(pattern);
+ if (patternIt == dialogPatterns.end())
+ return results;
+
+ const ScPattern* pat = &patternIt.value();
QStringList pats;
for (int c = 0; c < pat->items.count(); ++c)
More information about the scribus-commit
mailing list