aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r--src/ViewStyle.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index 8d2421b7a..4133fcc5f 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -73,7 +73,7 @@ void FontRealised::Realise(Surface &surface, int zoomLevel, Technology technolog
constexpr std::string_view allASCIIGraphic("Ayfi"
// python: ''.join(chr(ch) for ch in range(32, 127))
" !\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~");
- std::array<XYPOSITION, allASCIIGraphic.length()> positions;
+ std::array<XYPOSITION, allASCIIGraphic.length()> positions {};
surface.MeasureWidthsUTF8(font.get(), allASCIIGraphic, positions.data());
std::adjacent_difference(positions.begin(), positions.end(), positions.begin());
const XYPOSITION maxWidth = *std::max_element(positions.begin(), positions.end());