Fix a problem with variant under minGW
This commit is contained in:
parent
f5c735f0f1
commit
1d58dafa2c
1 changed files with 2 additions and 2 deletions
|
|
@ -909,7 +909,7 @@ void Editor::Impl::valueChanged(CControl* ctl)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case kTagSetOversampling:
|
case kTagSetOversampling:
|
||||||
ctrl.uiSendValue(EditId::Oversampling, 1 << static_cast<int>(value));
|
ctrl.uiSendValue(EditId::Oversampling, static_cast<float>(1 << static_cast<int>(value)));
|
||||||
updateOversamplingLabel(static_cast<int>(value));
|
updateOversamplingLabel(static_cast<int>(value));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
@ -936,7 +936,7 @@ void Editor::Impl::valueChanged(CControl* ctl)
|
||||||
default:
|
default:
|
||||||
if (tag >= kTagFirstChangePanel && tag <= kTagLastChangePanel) {
|
if (tag >= kTagFirstChangePanel && tag <= kTagLastChangePanel) {
|
||||||
int panelId = tag - kTagFirstChangePanel;
|
int panelId = tag - kTagFirstChangePanel;
|
||||||
ctrl.uiSendValue(EditId::UIActivePanel, panelId);
|
ctrl.uiSendValue(EditId::UIActivePanel, static_cast<float>(panelId));
|
||||||
setActivePanel(panelId);
|
setActivePanel(panelId);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue