Skip to content

Commit 8c8ca01

Browse files
Another experimental go at #1766
1 parent 0a8bca1 commit 8c8ca01

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cells/TextCell.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,9 @@ void TextCell::Draw(wxPoint point) {
502502

503503
void TextCell::SetFont(AFontSize fontsize) {
504504
wxDC *dc = m_configuration->GetDC();
505+
if(dc == NULL)
506+
return;
507+
505508
const wxFont &font = GetFont(fontsize);
506509
if(m_configuration->GetLastFontUsed() != &font)
507510
{

0 commit comments

Comments
 (0)