[MSPAINT] IDM_IMAGEROTATEMIRROR: Fix indent

Follow-up to #5660. CORE-19094
This commit is contained in:
Katayama Hirofumi MZ 2023-09-11 07:44:39 +09:00
parent 85377ee3db
commit e4512e6af2

View file

@ -916,35 +916,45 @@ LRESULT CMainWindow::OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bH
switch (mirrorRotateDialog.DoModal(mainWindow.m_hWnd)) switch (mirrorRotateDialog.DoModal(mainWindow.m_hWnd))
{ {
case 1: /* flip horizontally */ case 1: /* flip horizontally */
{
if (selectionModel.m_bShow) if (selectionModel.m_bShow)
selectionModel.FlipHorizontally(); selectionModel.FlipHorizontally();
else else
imageModel.FlipHorizontally(); imageModel.FlipHorizontally();
break; break;
}
case 2: /* flip vertically */ case 2: /* flip vertically */
{
if (selectionModel.m_bShow) if (selectionModel.m_bShow)
selectionModel.FlipVertically(); selectionModel.FlipVertically();
else else
imageModel.FlipVertically(); imageModel.FlipVertically();
break; break;
}
case 3: /* rotate 90 degrees */ case 3: /* rotate 90 degrees */
{
if (selectionModel.m_bShow) if (selectionModel.m_bShow)
selectionModel.RotateNTimes90Degrees(1); selectionModel.RotateNTimes90Degrees(1);
else else
imageModel.RotateNTimes90Degrees(1); imageModel.RotateNTimes90Degrees(1);
break; break;
}
case 4: /* rotate 180 degrees */ case 4: /* rotate 180 degrees */
{
if (selectionModel.m_bShow) if (selectionModel.m_bShow)
selectionModel.RotateNTimes90Degrees(2); selectionModel.RotateNTimes90Degrees(2);
else else
imageModel.RotateNTimes90Degrees(2); imageModel.RotateNTimes90Degrees(2);
break; break;
}
case 5: /* rotate 270 degrees */ case 5: /* rotate 270 degrees */
{
if (selectionModel.m_bShow) if (selectionModel.m_bShow)
selectionModel.RotateNTimes90Degrees(3); selectionModel.RotateNTimes90Degrees(3);
else else
imageModel.RotateNTimes90Degrees(3); imageModel.RotateNTimes90Degrees(3);
break; break;
}
} }
} }
break; break;