]> git.lyx.org Git - features.git/commit
* do not lookup the same macro all the time
authorStefan Schimanski <sts@lyx.org>
Thu, 24 May 2007 16:29:40 +0000 (16:29 +0000)
committerStefan Schimanski <sts@lyx.org>
Thu, 24 May 2007 16:29:40 +0000 (16:29 +0000)
commit93baf8eb9b4df52aa86e0fe5de0b4cef57ba3e83
tree487abc8803fbec78e27f989437c62588880e106f
parent195bd0b0b1450596fd616c870cf792816c01c51b
* do not lookup the same macro all the time
* only update the representation if anything was changed (this gives a
  huge speedup), fixes #2452
* minor cleanup of the code, especially setting up the coordinate
  cache. Without this can lead to crashes if the macros do not mention
  all the arguments.
* And a last fix included makes sure that the metrics are always in
  sync with the drawing. Before it was possible to go into the macro
  with the cursor in a way that the metrics were for the viewing mode,
  but the drawing was done for editing.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18489 a592a061-630c-0410-9148-cb99ea01b6c8
src/mathed/MacroTable.h
src/mathed/MathMacro.cpp
src/mathed/MathMacro.h