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 a1fa6f4dc6
commit 62978684fa

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);