Skip to content

Commit 78f556c

Browse files
sbrunnergeo-ghci-int[bot]
authored andcommitted
Fallback to mapCrs
1 parent fd0af8c commit 78f556c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/src/main/java/org/mapfish/print/map/geotools/grid/GridUtils.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,9 @@ private static double[] transformToLabelProjection(
284284

285285
// Get axis directions from the target CRS
286286
CoordinateReferenceSystem labelCrs = layerData.getLabelCRS();
287+
if (labelCrs == null) {
288+
labelCrs = mapCrs;
289+
}
287290
if (labelCrs != null) {
288291
CoordinateSystem cs = labelCrs.getCoordinateSystem();
289292
AxisDirection dir0 = cs.getAxis(0).getDirection();

0 commit comments

Comments
 (0)