]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/formulabase.h
Jean-Marc's fix for wrong descent
[lyx.git] / src / mathed / formulabase.h
index 9c53c47c57bb8aabd727eee9afadb9c512a620e3..0f8cd2e52237e2d5080ebfa123d7c706855b584d 100644 (file)
@@ -89,7 +89,11 @@ public:
        ///
        virtual void updateLocal(BufferView * bv, bool mark_dirty);
        ///
-       BufferView * view() const { return view_.get(); }
+#warning move this to formulabase.C (Lgb)
+       // And shouldn't this really return a shared_ptr<BufferView> instead?
+       BufferView * view() const {
+               return view_.lock().get();
+       }
 
        ///
        virtual bool searchForward(BufferView *, string const &,