low = Math.max(low, dataArea.getMinX());
high = Math.min(high, dataArea.getMaxX());
rect = new Rectangle2D.Double(low,
dataArea.getMinY(), high - low,
dataArea.getHeight());
<BUG>}
else if (orientation == PlotOrientation.VERTICAL) {
</BUG>
low = Math.max(low, dataArea.getMinY());
high = Math.min(high, dataArea.getMaxY());

low = Math.max(low, dataArea.getMinX());
high = Math.min(high, dataArea.getMaxX());
rect = new Rectangle2D.Double(low,
dataArea.getMinY(), high - low,
dataArea.getHeight());
} else if (orientation == PlotOrientation.VERTICAL) {
low = Math.max(low, dataArea.getMinY());
high = Math.min(high, dataArea.getMaxY());
