all repos — fluxbox @ 05c0bfc8f87c62001f9dadef70453364ccbe1590

custom fork of the fluxbox windowmanager

Minor fix
fluxgen fluxgen
commit

05c0bfc8f87c62001f9dadef70453364ccbe1590

parent

41249b77fb4db6041d53447ffdb49bfb4dd34ce8

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

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

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: XFontImp.cc,v 1.7 2004/06/07 11:46:05 rathnor Exp $ +// $Id: XFontImp.cc,v 1.8 2004/08/10 11:58:22 fluxgen Exp $ #include "XFontImp.hh" #include "App.hh"

@@ -90,10 +90,9 @@ XDrawString(disp, w, gc, x, y, text, len);

} unsigned int XFontImp::textWidth(const char * const text, unsigned int size) const { - if (text == 0) + if (text == 0 || m_fontstruct == 0) return 0; - if (m_fontstruct == 0) - return 0; + // check rotated font? if (m_rotfont != 0) return rotTextWidth(text, size);