Fix a narrowing conversion failing in MSVC

This commit is contained in:
Jean Pierre Cimalando 2020-08-31 09:42:04 +02:00
parent ecde6a4baf
commit 4c9249f713

View file

@ -282,7 +282,7 @@ void Editor::Impl::uiReceiveValue(EditId id, const EditValue& v)
void Editor::Impl::createFrameContents() void Editor::Impl::createFrameContents()
{ {
const CRect bounds { 0.0, 0.0, viewWidth, viewHeight }; const CRect bounds { 0.0, 0.0, static_cast<CCoord>(viewWidth), static_cast<CCoord>(viewHeight) };
CViewContainer* view = new CViewContainer(bounds); CViewContainer* view = new CViewContainer(bounds);
view_ = view; view_ = view;