all repos — fluxbox @ ad410a5c933ec6a6aec6645a108b85f2aa906a02

custom fork of the fluxbox windowmanager

removed potential division by zero with size zero fonts
Ryan Luchs rluchs107@gmail.comclear
commit

ad410a5c933ec6a6aec6645a108b85f2aa906a02

parent

e792fff30fabdc070aed577fe9f2bf94f4bc9923

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/FbTk/XftFontImp.ccsrc/FbTk/XftFontImp.cc

@@ -79,7 +79,7 @@ // overflow'). to prevent something like this we detect the maximium

// number of glyphs by calculating the amount of 'WW' (pretending a 'wide' // glyph) fitting into 32k pixels unsigned int tw = textWidth("WW", 2); - m_maxlength = 0x8000 / tw; + m_maxlength = 0x8000 / (tw == 0 ? 1 : tw); return true; }