diff options
author | George Hazan <george.hazan@gmail.com> | 2024-06-05 11:29:46 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-06-05 11:29:46 +0300 |
commit | f4e11483e799824747d458f88775713de26320da (patch) | |
tree | 48cfff351037c53e9ff0b9b7124fae628216d779 /plugins/NewStory/src | |
parent | 994b4e2b0e779e9798042e44a9475ef59d8fcb35 (diff) |
NewStrory: fix for occasional crash
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 468591f541..8531236cef 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -784,7 +784,8 @@ void NewstoryListData::Paint(simpledib::dib &dib) // draw html itself
litehtml::position clip(xPos, yPos, cachedWindowWidth - xPos, iItemHeigth);
- pItem->m_doc->draw((UINT_PTR)dib.hdc(), xPos, yPos + iOffsetY, &clip);
+ if (pItem->m_doc)
+ pItem->m_doc->draw((UINT_PTR)dib.hdc(), xPos, yPos + iOffsetY, &clip);
// draw border
HPEN hpn = (HPEN)SelectObject(dib, CreatePen(PS_SOLID, 1, clLine));
|