Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 3869 → Rev 3870

/branches/Version13x/Scribus/scribus/pageitem.cpp
3363,6 → 3363,8
GrEndY = QMIN(QMAX(GrEndY, 0), Height);
GrStartX = QMIN(QMAX(GrStartX, 0), Width);
GrStartY = QMIN(QMAX(GrStartY, 0), Height);
if (ScApp->view->SelItem.count()!=0 && this==ScApp->view->SelItem.at(0))
ScApp->propertiesPalette->updateColorSpecialGradient();
}
 
void PageItem::SetPolyClip(int up)
/branches/Version13x/Scribus/scribus/scribusview.cpp
5259,7 → 5259,7
}
break;
}
updateGradientVectors(currItem);
currItem->updateGradientVectors();
}
 
void ScribusView::MarkClip(PageItem *currItem, FPointArray cli, bool once)
6007,7 → 6007,7
p.setPen(QPen(white, 1, DotLine, FlatCap, MiterJoin));
currItem->DrawPolyL(&p, currItem->Clip);
UpdateClip(currItem);
updateGradientVectors(currItem);
currItem->updateGradientVectors();
currItem->DrawPolyL(&p, currItem->Clip);
p.end();
return true;
6030,7 → 6030,7
}
UpdateClip(currItem);
}
updateGradientVectors(currItem);
currItem->updateGradientVectors();
if (redraw)
{
QRect newR(currItem->getRedrawBounding(Scale));
6354,7 → 6354,7
bb->GrStartY = gr.point(0).y();
bb->GrEndX = gr.point(1).x();
bb->GrEndY = gr.point(1).y();
updateGradientVectors(bb);
bb->updateGradientVectors();
if ((Doc->RotMode != 0) && (!Doc->isLoading()))
{
switch (Doc->RotMode)
7559,7 → 7559,8
void ScribusView::updateGradientVectors(PageItem *currItem)
{
currItem->updateGradientVectors();
ScApp->propertiesPalette->updateColorSpecialGradient();
if (currItem==SelItem.at(0))
ScApp->propertiesPalette->updateColorSpecialGradient();
}
 
void ScribusView::SetupDraw(int nr)
9568,7 → 9569,7
{
currItem = SelItem.at(a);
currItem->GrType = typ;
updateGradientVectors(currItem);
currItem->updateGradientVectors();
RefreshItem(currItem);
}
}
10701,7 → 10702,7
currItem->GrStartY = Buffer->GrStartY;
currItem->GrEndX = Buffer->GrEndX;
currItem->GrEndY = Buffer->GrEndY;
updateGradientVectors(currItem);
currItem->updateGradientVectors();
}
currItem->setObjectAttributes(&(Buffer->pageItemAttributes));
setRedrawBounding(currItem);