Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 12283 → Rev 12282

/trunk/Scribus/scribus/smcstylewidget.cpp
7,7 → 7,6
 
#include <QEvent>
 
#include "langmgr.h"
#include "smcstylewidget.h"
#include "util_icon.h"
#include "util.h"
239,9 → 238,6
defLang : parent->language();
 
int ci = -1, pi = -1, di = -1;
LanguageManager langmgr;
langmgr.init(true);
QString tl;
for (int i = 0; i < language_->count(); ++i)
{
if (language_->itemText(i) == langMap_[clang])
249,13 → 245,9
if (hasParent && language_->itemText(i) == langMap_[plang])
pi = i;
tl=langmgr.getTransLangFromLang(defLang);
// qDebug() << i << language_->itemText(i) << defLang << langMap_[defLang] << tl;
if (language_->itemText(i) == defLang || language_->itemText(i) == langMap_[defLang] || language_->itemText(i) == tl)
// {
 
if (language_->itemText(i) == defLang || language_->itemText(i) == langMap_[defLang])
di = i;
// qDebug() << "match on:" << di;
// }
}
 
// qDebug(QString("SMCStyleWidget::show(): deflan='%1'->'%2'").arg(defLang).arg(langMap_[defLang]));