From c80ca69407154462729ea5309d555d374a676f2d Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 5 Jun 2006 09:04:23 +0000 Subject: OS X Quartz: fixed the text width problem. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5175 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_font_mac.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fl_font_mac.cxx b/src/fl_font_mac.cxx index c714dc826..e6edecbaa 100644 --- a/src/fl_font_mac.cxx +++ b/src/fl_font_mac.cxx @@ -288,8 +288,8 @@ double fl_width(const char* txt, int n) { Fl_Window *w = Fl::first_window(); if (w) w->make_current(); if (!fl_gc) { - fprintf(stderr, "FLTK:fl_width() - no visible window to measure this text.\n"); - return -1; + // We fall back to some internal QuickDraw port. + // The result should be the same. } } OSStatus err; -- cgit v1.2.3