Skip to content

Commit 54b91cb

Browse files
committed
Correct json viewer dialog loading behavior
1 parent 4e2b528 commit 54b91cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NppJSONViewer/NppJsonViewer/JsonViewDlg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void JsonViewDlg::ShowDlg(bool bShow)
5252
data.pszName = const_cast<TCHAR*>(TITLE_JSON_PANEL);
5353

5454
// the dlgDlg should be the index of funcItem where the current function pointer is
55-
data.dlgID = m_nDlgId;
55+
data.dlgID = static_cast<int>(CallBackID::SHOW_DOC_PANEL);
5656
::SendMessage(_hParent, NPPM_DMMREGASDCKDLG, 0, (LPARAM)&data);
5757

5858
// Draw json tree now

0 commit comments

Comments
 (0)