X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fscrollbar.c;h=6df936c6d0600573fb5e9f38aa10fa5b590f0cbc;hb=1d0f965ba499c40eb5b24415c62ec0dc2b0b8ff7;hp=1baa76f8dcbfd7ee627de6f891a895c0e31eb722;hpb=98a6e4055a1fa624c592ac06f79287d55196ca37;p=chise%2Fxemacs-chise.git.1 diff --git a/src/scrollbar.c b/src/scrollbar.c index 1baa76f..6df936c 100644 --- a/src/scrollbar.c +++ b/src/scrollbar.c @@ -240,7 +240,8 @@ compute_scrollbar_instance_usage (struct device *d, { int total = 0; - total += DEVMETH (d, compute_scrollbar_instance_usage, (d, inst, ovstats)); + if (HAS_DEVMETH_P(d, compute_scrollbar_instance_usage)) + total += DEVMETH (d, compute_scrollbar_instance_usage, (d, inst, ovstats)); while (inst) {