From 0b4a8e76d0137146ac89527892eac7e64d89f217 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 17 Jul 2024 09:14:31 -0400 Subject: Fix narrowing conversions --- src/Reactor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Reactor.cpp') diff --git a/src/Reactor.cpp b/src/Reactor.cpp index 49cbe5a..7163539 100644 --- a/src/Reactor.cpp +++ b/src/Reactor.cpp @@ -137,7 +137,8 @@ Reactor::operator()(const action::Refresh&) void Reactor::operator()(const action::ResetFontSize&) { - _conf.set(_canvas.get_default_font_size()); + _conf.set( + static_cast(_canvas.get_default_font_size())); } void @@ -158,7 +159,7 @@ void Reactor::operator()(const action::ZoomFull&) { _canvas.zoom_full(); - _conf.set(_canvas.get_zoom()); + _conf.set(static_cast(_canvas.get_zoom())); } void -- cgit v1.2.1