Commit 08e5c680 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix indentation

parent d6729852
......@@ -48,9 +48,9 @@ KritaFilterGradientMap::KritaFilterGradientMap() : KisFilter(id(), FiltersCatego
}
void KritaFilterGradientMap::processImpl(KisPaintDeviceSP device,
const QRect& applyRect,
const KisFilterConfigurationSP config,
KoUpdater *progressUpdater) const
const QRect& applyRect,
const KisFilterConfigurationSP config,
KoUpdater *progressUpdater) const
{
Q_ASSERT(!device.isNull());
......@@ -58,18 +58,16 @@ void KritaFilterGradientMap::processImpl(KisPaintDeviceSP device,
if (config->version()==1) {
QDomElement elt = doc.createElement("gradient");
KoAbstractGradient *gradientAb = KoResourceServerProvider::instance()->gradientServer()->resourceByName(config->getString("gradientName"));
if (!gradientAb) {
qWarning() << "Could not find gradient" << config->getString("gradientName");
}
if (!gradientAb) {
qWarning() << "Could not find gradient" << config->getString("gradientName");
}
gradientAb = KoResourceServerProvider::instance()->gradientServer()->resources().first();
KoStopGradient::fromQGradient(gradientAb->toQGradient())->toXML(doc, elt);
doc.appendChild(elt);
} else {
doc.setContent(config->getString("gradientXML", ""));
}
KoStopGradient gradient = KoStopGradient::fromXML(doc.firstChildElement());
KoStopGradient gradient = KoStopGradient::fromXML(doc.firstChildElement());
KoColor outColor(Qt::white, device->colorSpace());
KisSequentialIteratorProgress it(device, applyRect, progressUpdater);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment