Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 14089 → Rev 14090

/trunk/Scribus/scribus/scimgdataloader_wpg.cpp
125,7 → 125,8
for(unsigned c = 0; c < brush.gradient.count(); c++)
{
QColor stopC = QColor(brush.gradient.stopColor(c).red, brush.gradient.stopColor(c).green, brush.gradient.stopColor(c).blue);
currentGradient.setColorAt(fabs(brush.gradient.stopOffset(c)), stopC);
double pos = qBound(0.0, fabs(brush.gradient.stopOffset(c)), 1.0);
currentGradient.setColorAt(pos, stopC);
}
}
else if (brush.style == libwpg::WPGBrush::NoBrush)
/trunk/Scribus/scribus/plugins/wpgimplugin/importwpg.cpp
262,7 → 262,8
currStopColor = newColorName;
}
const ScColor& gradC = m_Doc->PageColors[currStopColor];
currentGradient.addStop( ScColorEngine::getRGBColor(gradC, m_Doc), fabs(brush.gradient.stopOffset(c)), 0.5, 1.0, currStopColor, 100 );
double pos = qBound(0.0, fabs(brush.gradient.stopOffset(c)), 1.0);
currentGradient.addStop( ScColorEngine::getRGBColor(gradC, m_Doc), pos, 0.5, 1.0, currStopColor, 100 );
}
}
else if (brush.style == libwpg::WPGBrush::NoBrush)