From c9b19706d1b942bb69d3fd566cdebb4fb57746c0 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 16 Sep 2006 14:27:27 +0000 Subject: [PATCH] Kernel::isBufferAvailable(): replace the implicit pointer cast. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15020 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/controllers/Kernel.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/controllers/Kernel.C b/src/frontends/controllers/Kernel.C index 7a4ea142f6..c604f767b0 100644 --- a/src/frontends/controllers/Kernel.C +++ b/src/frontends/controllers/Kernel.C @@ -51,7 +51,7 @@ bool Kernel::isBufferAvailable() const { if (!lyxview_.view()) return false; - return lyxview_.view()->buffer(); + return lyxview_.view()->buffer() != 0; }