From 5f27947aefee8fb3485fed56eb35a8acc1165f6c Mon Sep 17 00:00:00 2001
From: Martin Vermeer <martin.vermeer@hut.fi>
Date: Mon, 4 Apr 2005 13:40:27 +0000
Subject: [PATCH] Make split-type math insets clickable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9776 a592a061-630c-0410-9148-cb99ea01b6c8
---
 src/mathed/ChangeLog         | 5 +++++
 src/mathed/math_splitinset.C | 7 +++++++
 src/mathed/math_splitinset.h | 3 +++
 3 files changed, 15 insertions(+)

diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog
index 7c77125919..ae984992ca 100644
--- a/src/mathed/ChangeLog
+++ b/src/mathed/ChangeLog
@@ -1,5 +1,10 @@
+2005-04-04  Martin Vermeer  <martin.vermeer@hut.fi>
+
+	* math_splitinset.[Ch]: add draw method calling setPosCache,
+	to make split-type insets clickable.
 
 2005-04-04  Martin Vermeer  <martin.vermeer@hut.fi>
+
 	* math_amsarrayinset.C:
 	* math_casesinset.C:
 	* math_gridinset.C:
diff --git a/src/mathed/math_splitinset.C b/src/mathed/math_splitinset.C
index 5f5af3d87a..e372b5d658 100644
--- a/src/mathed/math_splitinset.C
+++ b/src/mathed/math_splitinset.C
@@ -55,6 +55,13 @@ char MathSplitInset::defaultColAlign(col_type col)
 }
 
 
+void MathSplitInset::draw(PainterInfo & pi, int x, int y) const
+{
+	MathGridInset::draw(pi, x, y);
+	setPosCache(pi, x, y);
+}
+
+
 bool MathSplitInset::getStatus(LCursor & cur, FuncRequest const & cmd,
 		FuncStatus & flag) const
 {
diff --git a/src/mathed/math_splitinset.h b/src/mathed/math_splitinset.h
index 8df3002267..4d3063d617 100644
--- a/src/mathed/math_splitinset.h
+++ b/src/mathed/math_splitinset.h
@@ -20,6 +20,9 @@ public:
 	///
 	explicit MathSplitInset(std::string const & name);
 
+	///
+	void draw(PainterInfo & pi, int x, int y) const;
+
 	///
 	bool getStatus(LCursor & cur, FuncRequest const & cmd,
 		FuncStatus & flag) const;