(char-daikanwa-strokes): Fix problem when function
authortomo <tomo>
Mon, 9 Aug 2010 17:08:02 +0000 (17:08 +0000)
committertomo <tomo>
Mon, 9 Aug 2010 17:08:02 +0000 (17:08 +0000)
`char-representative-of-daikanwa' returns nil.

lisp/utf-2000/ideograph-util.el

index 9608e52..8889ac3 100644 (file)
     (setq radical ideographic-radical))
   (let ((drc (char-representative-of-daikanwa char radical))
        (r (char-ideographic-radical char radical)))
-    (if (or (null r)
-           (= (char-ideographic-radical drc radical) r))
+    (if (and drc
+            (or (null r)
+                (= (char-ideographic-radical drc radical) r)))
        (setq char drc)))
   (char-ideographic-strokes char radical '(daikanwa)))