r24790 by jghali - Fix fallback style values in search and replace dialog
scribus-commit
scribus-commit at lists.scribus.net
Fri Dec 31 16:54:07 UTC 2021
Author: jghali
Date: Fri Dec 31 16:54:07 2021
New Revision: 24790
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24790
Log:
Fix fallback style values in search and replace dialog
Modified:
trunk/Scribus/scribus/ui/search.cpp
Modified: trunk/Scribus/scribus/ui/search.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24790&path=/trunk/Scribus/scribus/ui/search.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/search.cpp (original)
+++ trunk/Scribus/scribus/ui/search.cpp Fri Dec 31 16:54:07 2021
@@ -1160,7 +1160,7 @@
searchTextCheckBox->setChecked(m_prefs->getBool("SText", true));
replaceEffectCheckBox->setChecked(m_prefs->getBool("REffect", false));
searchTextLineEdit->setText(m_prefs->get("STextVal", ""));
- int tmp = m_prefs->getInt("SStyleVal", findParagraphStyle(m_doc, m_doc->currentStyle));
+ int tmp = m_prefs->getInt("SStyleVal", findParagraphStyle(m_doc, m_doc->currentStyle.parent()));
if (tmp < 0 || tmp >= searchStyleValue->count())
tmp = 0;
searchStyleValue->setCurrentIndex(tmp);
@@ -1182,7 +1182,7 @@
replaceStyleCheckBox->setChecked(m_prefs->getBool("RStyle", false));
replaceTextCheckBox->setChecked(m_prefs->getBool("RText", true));
replaceTextLineEdit->setText(m_prefs->get("RTextVal", ""));
- tmp = m_prefs->getInt("RStyleVal", findParagraphStyle(m_doc, m_doc->currentStyle));
+ tmp = m_prefs->getInt("RStyleVal", findParagraphStyle(m_doc, m_doc->currentStyle.parent()));
if (tmp < 0 || tmp >= replaceStyleValue->count())
tmp = 0;
replaceStyleValue->setCurrentIndex(tmp);
More information about the scribus-commit
mailing list