Subversion Repositories Scribus

Compare Revisions

Regard whitespace Rev 3718 → Rev 3719

/branches/Version13x/Scribus/scribus/util.cpp
1213,10 → 1213,11
{
static QMap<QRgb, QPixmap*> pxCache;
 
QPixmap * pm = pxCache[rgb.rgb()];
if (!pm)
{
pm = new QPixmap(15, 15);
QRgb index=rgb.rgb();
if (pxCache.contains(index))
return pxCache[index];
 
QPixmap *pm = new QPixmap(15, 15);
pm->fill(rgb);
QPainter p;
p.begin(pm);
1225,8 → 1226,7
p.setPen(b);
p.drawRect(0, 0, 15, 15);
p.end();
pxCache[rgb.rgb()] = pm;
}
pxCache.insert(index, pm);
return pm;
}
 
1234,12 → 1234,13
{
static QMap<QRgb, QPixmap*> pxCache;
 
QPixmap * pm = pxCache[rgb.rgb()];
if (!pm) {
pm = new QPixmap(30, 15);
QRgb index=rgb.rgb();
if (pxCache.contains(index))
return pxCache[index];
 
QPixmap *pm = new QPixmap(30, 15);
pm->fill(rgb);
pxCache[rgb.rgb()] = pm;
}
pxCache.insert(index, pm);
return pm;
}
 
1308,7 → 1309,6
if (col.isRegistrationColor())
paintAlert(regIcon, *pa, 45, 0);
pxCache.insert(res, pa);
return pa;
}
 
1326,7 → 1326,8
FPoint np, rp;
double mx = 0;
double my = 0;
for (uint c = 0; c < Clip->size(); ++c)
uint clipSize=Clip->size();
for (uint c = 0; c < clipSize; ++c)
{
np = Clip->point(c);
if (np.x() > 900000)
1345,7 → 1346,8
FPoint np, rp;
double mx = 99999;
double my = 99999;
for (uint c = 0; c < Clip->size(); ++c)
uint clipSize=Clip->size();
for (uint c = 0; c < clipSize; ++c)
{
np = Clip->point(c);
if (np.x() > 900000)