summaryrefslogtreecommitdiff
path: root/src/nsfont.m
diff options
context:
space:
mode:
authorAdrian Robert <Adrian.B.Robert@gmail.com>2010-11-04 20:10:50 +0200
committerAdrian Robert <Adrian.B.Robert@gmail.com>2010-11-04 20:10:50 +0200
commit3fdebbf9ac5507cf112ee58613a02f73039c4e41 (patch)
treef09b005ed34cc50ee1771c0cf069a66c97ad59f3 /src/nsfont.m
parenteea682b6d1e8a2c518dc8402160bbccd999d64e7 (diff)
downloademacs-3fdebbf9ac5507cf112ee58613a02f73039c4e41.tar.gz
* nsfont.m (nsfont_draw) * nsimage.m (EmacsImage-setXBMColor:) * nsterm.m (EmacsView-performDragOperation:): Correct empty return statements. Based on a patch by Ismail Donmez <ismail@namtrac.org>.
Diffstat (limited to 'src/nsfont.m')
-rw-r--r--src/nsfont.m4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nsfont.m b/src/nsfont.m
index 115986774d8..63b94a1b67a 100644
--- a/src/nsfont.m
+++ b/src/nsfont.m
@@ -1211,7 +1211,6 @@ nsfont_draw (struct glyph_string *s, int from, int to, int x, int y,
DPSstroke (context);
DPSgrestore (context);
- return to-from;
}
#else /* NS_IMPL_COCOA */
@@ -1280,10 +1279,9 @@ nsfont_draw (struct glyph_string *s, int from, int to, int x, int y,
}
CGContextRestoreGState (gcontext);
- return;
}
#endif /* NS_IMPL_COCOA */
-
+ return to-from;
}