Sanity-check dirty rectangles when painting the media panel.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1858 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2002-10-29 20:33:51 +00:00
parent 092e0f110c
commit 6334b6d690
@@ -1,5 +1,5 @@
//
// $Id: MediaPanel.java,v 1.20 2002/10/25 21:15:27 mdb Exp $
// $Id: MediaPanel.java,v 1.21 2002/10/29 20:33:51 shaper Exp $
package com.threerings.media;
@@ -265,6 +265,12 @@ public class MediaPanel extends JComponent
for (int ii = 0; ii < dcount; ii++) {
Rectangle clip = dirty[ii];
// sanity-check the dirty rectangle
if (clip == null) {
Log.warning("Found null dirty rect painting media panel?!");
Thread.dumpStack();
continue;
}
// constrain this dirty region to the bounds of the component
constrainToBounds(clip);