Added a insetButtonRelease call returning true as prove of concept (fix #214).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3590 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2002-02-26 16:14:45 +00:00
parent 74085939ee
commit af8dccce0f
3 changed files with 10 additions and 4 deletions

View File

@ -1,5 +1,8 @@
2002-02-26 Juergen Vigna <jug@sad.it>
* inseturl.h: Added a insetButtonRelease call returning true as
prove of concept.
* insetlabel.C (edit): Fixed wrong update handling after change I
leave in the wrong code for the one who wrote it to remove and have
a look what he did wrong.

View File

@ -905,9 +905,9 @@ void InsetText::insetButtonPress(BufferView * bv, int x, int y, int button)
if (the_locking_inset) {
if (the_locking_inset == inset) {
the_locking_inset->insetButtonPress(bv,
x - inset_x,
y - inset_y,
button);
x - inset_x,
y - inset_y,
button);
no_selection = false;
return;
} else if (inset) {
@ -917,7 +917,7 @@ void InsetText::insetButtonPress(BufferView * bv, int x, int y, int button)
inset_y = cy(bv) + drawTextYOffset;
the_locking_inset = 0;
inset->insetButtonPress(bv, x - inset_x,
y - inset_y, button);
y - inset_y, button);
inset->edit(bv, x - inset_x, y - inset_y, button);
if (the_locking_inset)
updateLocal(bv, CURSOR, false);

View File

@ -53,6 +53,9 @@ public:
int linuxdoc(Buffer const *, std::ostream &) const;
///
int docbook(Buffer const *, std::ostream &) const;
///
bool insetButtonRelease(BufferView *, int x, int y, int button)
{ return true; }
};
#endif