From: <j....@ge...> - 2003-06-21 00:01:31
|
hi guys i found a bug in Java2DRenderer line 257 or around the line: for (int l = 0; l < this.context.getLayerList().getLayers().length; l++) { if (!this.context.getLayerList().getLayers()[l].getVisability()) { // Only render layer when layer is visable break; } there is a break to finish the whole loop when the first layer getVisability() return false, i guese the coder's real thought is to continue and but not render the current layer, so i change it to : for (int l = 0; l < this.context.getLayerList().getLayers().length; l++) { if (!this.context.getLayerList().getLayers()[l].getVisability()) { // Only render layer when layer is visable continue; } it works. is this correct? cheers jin |