Issue #1380 fix kml handling of uninitialized coor bars.
Former-commit-id:5040239f69
[formerly0418beb8c7
] [formerly1828fcbccf
[formerly 31189d6a6ca7a97220f2713f067c27e9bb415fd1]] Former-commit-id:1828fcbccf
Former-commit-id:ba7f4d2e71
This commit is contained in:
parent
9169d6610b
commit
1c508fc105
1 changed files with 5 additions and 1 deletions
|
@ -304,7 +304,6 @@ public class KmlExportJob extends Job {
|
|||
lastIndex = Math.min(lastIndex, descriptor.getNumberOfFrames());
|
||||
rscmonitor.beginTask("Saving " + rsc.getName(), lastIndex
|
||||
- startIndex);
|
||||
addColorMap(resourceOut, display.getBackgroundColor(), rsc);
|
||||
DataTime[] times = descriptor.getFramesInfo().getTimeMap()
|
||||
.get(rsc);
|
||||
if ((times == null || times.length == 0)
|
||||
|
@ -352,6 +351,7 @@ public class KmlExportJob extends Job {
|
|||
return;
|
||||
}
|
||||
}
|
||||
addColorMap(resourceOut, display.getBackgroundColor(), rsc);
|
||||
}
|
||||
rp.getProperties().setVisible(false);
|
||||
if (options.isPreserveVisibility() && !visibility.get(c)) {
|
||||
|
@ -550,6 +550,10 @@ public class KmlExportJob extends Job {
|
|||
xAnchor = Math.min(1, cap.getResourceIndex());
|
||||
}
|
||||
IColorMap colorMap = parameters.getColorMap();
|
||||
if (colorMap == null) {
|
||||
// the resource isn't actually using it's color bar.
|
||||
return;
|
||||
}
|
||||
BufferedImage bi = new BufferedImage(colorMap.getSize() * 2, 25,
|
||||
BufferedImage.TYPE_INT_RGB);
|
||||
Graphics graphics = bi.getGraphics();
|
||||
|
|
Loading…
Add table
Reference in a new issue