Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 1970 → Rev 1971

/branches/Version13x/Scribus/scribus/plugins/scriptplugin/cmdcolor.cpp
33,7 → 33,7
QString col = QString::fromUtf8(Name);
if (!edc.contains(col))
{
PyErr_SetString(NotFoundError, QObject::tr("Colour not found.","python error"));
PyErr_SetString(NotFoundError, QObject::tr("Color not found.","python error"));
return NULL;
}
edc[col].getCMYK(&c, &m, &y, &k);
55,7 → 55,7
QString col = QString::fromUtf8(Name);
if (!edc.contains(col))
{
PyErr_SetString(NotFoundError, QObject::tr("Colour not found.","python error"));
PyErr_SetString(NotFoundError, QObject::tr("Color not found.","python error"));
return NULL;
}
QColor rgb = edc[col].getRGBColor();
78,7 → 78,7
{
if (!Carrier->doc->PageColors.contains(col))
{
PyErr_SetString(NotFoundError, QObject::tr("Colour not found in document.","python error"));
PyErr_SetString(NotFoundError, QObject::tr("Color not found in document.","python error"));
return NULL;
}
Carrier->doc->PageColors[col].setColor(c, m, y, k);
87,7 → 87,7
{
if (!Carrier->Prefs.DColors.contains(col))
{
PyErr_SetString(NotFoundError, QObject::tr("Colour not found in default colors.","python error"));
PyErr_SetString(NotFoundError, QObject::tr("Color not found in default colors.","python error"));
return NULL;
}
Carrier->Prefs.DColors[col].setColor(c, m, y, k);
152,7 → 152,7
}
else
{
PyErr_SetString(NotFoundError, QObject::tr("Colour not found in document.","python error"));
PyErr_SetString(NotFoundError, QObject::tr("Color not found in document.","python error"));
return NULL;
}
}
162,7 → 162,7
Carrier->Prefs.DColors.remove(col);
else
{
PyErr_SetString(NotFoundError, QObject::tr("Colour not found in default colors.","python error"));
PyErr_SetString(NotFoundError, QObject::tr("Color not found in default colors.","python error"));
return NULL;
}
}
190,7 → 190,7
ReplaceColor(col, rep);
else
{
PyErr_SetString(NotFoundError, QObject::tr("Colour not found.","python error"));
PyErr_SetString(NotFoundError, QObject::tr("Color not found.","python error"));
return NULL;
}
Py_INCREF(Py_None);