diff options
author | David Robillard <d@drobilla.net> | 2024-07-17 09:14:31 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-07-17 09:14:31 -0400 |
commit | 0b4a8e76d0137146ac89527892eac7e64d89f217 (patch) | |
tree | 32a34b177cd67f1a9f99fe6dec0855386c2c804d /src/Reactor.cpp | |
parent | 395cd74dcdb12ca8f16e1ec74802e11049e4f6cf (diff) | |
download | patchage-0b4a8e76d0137146ac89527892eac7e64d89f217.tar.gz patchage-0b4a8e76d0137146ac89527892eac7e64d89f217.tar.bz2 patchage-0b4a8e76d0137146ac89527892eac7e64d89f217.zip |
Fix narrowing conversions
Diffstat (limited to 'src/Reactor.cpp')
-rw-r--r-- | src/Reactor.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<setting::FontSize>(_canvas.get_default_font_size()); + _conf.set<setting::FontSize>( + static_cast<float>(_canvas.get_default_font_size())); } void @@ -158,7 +159,7 @@ void Reactor::operator()(const action::ZoomFull&) { _canvas.zoom_full(); - _conf.set<setting::Zoom>(_canvas.get_zoom()); + _conf.set<setting::Zoom>(static_cast<float>(_canvas.get_zoom())); } void |