Minor fix
fluxgen fluxgen
1 files changed,
3 insertions(+),
4 deletions(-)
jump to
M
src/FbTk/XFontImp.cc
→
src/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);