Skip to content

Commit 0e37e5b

Browse files
committed
Rename variable
1 parent 13ac714 commit 0e37e5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/NppJsonViewer/JsonViewDlg.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -942,13 +942,13 @@ void JsonViewDlg::HandleZoomOnScroll(WPARAM wParam) const
942942
int delta = GET_WHEEL_DELTA_WPARAM(wParam);
943943

944944
const auto& zoomRange = m_pTreeViewZoom->GetRange();
945-
const bool isZoom = delta > 0;
945+
const bool isZoomIn = delta > 0;
946946

947-
if (isZoom && pos < zoomRange.m_nMaxZoom)
947+
if (isZoomIn && pos < zoomRange.m_nMaxZoom)
948948
{
949949
pos += 10; // Zoom in
950950
}
951-
else if (!isZoom && pos > zoomRange.m_nMinZoom)
951+
else if (!isZoomIn && pos > zoomRange.m_nMinZoom)
952952
{
953953
pos -= 10; // Zoom out
954954
}

0 commit comments

Comments
 (0)