Subversion Repositories Scribus

Compare Revisions

Regard whitespace Rev 22990 → Rev 22991

/trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp
1375,12 → 1375,15
 
void SlaOutputDev::endTransparencyGroup(GfxState *state)
{
if (m_groupStack.count() != 0)
{
if (m_groupStack.count() <= 0)
return;
 
tmpSel->clear();
 
groupEntry gElements = m_groupStack.pop();
tmpSel->clear();
if (gElements.Items.count() > 0)
{
if (gElements.Items.count() <= 0)
return;
 
if (gElements.forSoftMask)
{
for (int dre = 0; dre < gElements.Items.count(); ++dre)
1446,15 → 1449,15
applyMask(ite);
m_groupStack.top().Items.append(ite);
}
}
 
tmpSel->clear();
}
}
 
void SlaOutputDev::setSoftMask(GfxState * /*state*/, POPPLER_CONST_070 double * /*bbox*/, GBool alpha, Function *transferFunc, GfxColor * /*backdropColor*/)
{
if (m_groupStack.count() != 0)
{
if (m_groupStack.count() <= 0)
return;
 
double lum = 0;
double lum2 = 0;
if (transferFunc)
1470,7 → 1473,6
if (m_groupStack.top().Items.count() != 0)
applyMask(m_groupStack.top().Items.last());
}
}
 
void SlaOutputDev::clearSoftMask(GfxState * /*state*/)
{
1497,9 → 1499,10
ctm = state->getCTM();
m_ctm = QTransform(ctm[0], ctm[1], ctm[2], ctm[3], ctm[4], ctm[5]);
QString output = convertPath(state->getPath());
if (output.isEmpty())
return;
 
FPointArray out;
if (!output.isEmpty())
{
out.parseSVG(output);
out.svgClosePath();
out.map(m_ctm);
1525,7 → 1528,6
else
m_currentClipPath = out.copy();
}
}
 
void SlaOutputDev::eoClip(GfxState *state)
{