Skip to content

viewport: Fix failed check in min/max zoom

James Westman requested to merge jwestman/libshumate:fix-52 into main

The check failed when a min zoom greater than 0 was set before a max zoom was set, because the max zoom is still 0 at that point in the object construction process.

Fixed by setting the default values in the initializer method.

Fixes #52.

Merge request reports