Bug 890495. Fix comparison of legend position. r=roc

This commit is contained in:
Timothy Nikkel 2013-07-05 17:57:13 -05:00
parent 3761374fdc
commit 431c0ca32b

View File

@ -593,7 +593,7 @@ nsFieldSetFrame::Reflow(nsPresContext* aPresContext,
nsPoint curOrigin = legend->GetPosition();
// only if the origin changed
if ((curOrigin.x != mLegendRect.x) || (curOrigin.y != mLegendRect.y)) {
if ((curOrigin.x != actualLegendRect.x) || (curOrigin.y != actualLegendRect.y)) {
legend->SetPosition(nsPoint(actualLegendRect.x , actualLegendRect.y));
nsContainerFrame::PositionFrameView(legend);