diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index 32f4390402..1ec560c6b0 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -1066,7 +1066,7 @@ bool wxGCDCImpl::DoGetPartialTextExtents(const wxString& text, wxArrayInt& width wxCoord wxGCDCImpl::GetCharWidth(void) const { - wxCoord width; + wxCoord width = 0; DoGetTextExtent( wxT("g") , &width , NULL , NULL , NULL , NULL ); return width; @@ -1074,7 +1074,7 @@ wxCoord wxGCDCImpl::GetCharWidth(void) const wxCoord wxGCDCImpl::GetCharHeight(void) const { - wxCoord height; + wxCoord height = 0; DoGetTextExtent( wxT("g") , NULL , &height , NULL , NULL , NULL ); return height;