]> git.lyx.org Git - lyx.git/commit
Remove background_color_ in Insets: it takes a lot of unnecessary memory,
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 12 Jun 2007 13:45:49 +0000 (13:45 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 12 Jun 2007 13:45:49 +0000 (13:45 +0000)
commit4ba4d701f798488c098ecbc740c3020ed514cd96
treec396a1e30abf3f895f20c40be68bc2985bb5e7ee
parent37333444c0ff59ea53e80b94322a59bc52b1cab1
Remove background_color_ in Insets: it takes a lot of unnecessary memory,
especially in math where each equation has many insets.

* src/Insets.cpp: remove background_color_ member
(setBackgroundColor): remove
(backgroundColor): make virtual

* insets/InsetBranch.cpp:
* insets/InsetNote.cpp: move color setting code from setButtonLabel to
backgroundColor.

* insets/InsetBox.cpp (setButtonLabel): remove call to setBackgroundColor.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18750 a592a061-630c-0410-9148-cb99ea01b6c8
src/insets/Inset.cpp
src/insets/Inset.h
src/insets/InsetBox.cpp
src/insets/InsetBranch.cpp
src/insets/InsetBranch.h
src/insets/InsetNote.cpp
src/insets/InsetNote.h