]> git.lyx.org Git - features.git/commit
This commit fixes the singlePar optimization which was disabled due to the ParagraphM...
authorAbdelrazak Younes <younes@lyx.org>
Sat, 6 Jan 2007 09:15:59 +0000 (09:15 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 6 Jan 2007 09:15:59 +0000 (09:15 +0000)
commit063fdd118b87462c4670246484df389f1e2ffeb7
tree98be25f724e2f4226f45278136ec454bd9d50bc6
parenta01209bee8b4aeea35d5330902114c9a82495f76
This commit fixes the singlePar optimization which was disabled due to the ParagraphMetrics cleanup.

* rowpainter.C::paintPar(): don't calculate row signature here. Use ParagraphMetrics::rowChangeStatus() instead.

* RowList_fwd.h: RowSignature is now a vector.

* ParagraphMetrics
  - rowChangeStatus(), updateRowChangeStatus(), calculateRowSignature(): new methods.
  - row_signature_: new member
  - rowSignature_: renamed to row_signature_

* TextMetrics::redoParagraph(): call ParagraphMetrics::updateRowChangeStatus()

* BufferView::updateMetrics(): simplify the singlePar case.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16543 a592a061-630c-0410-9148-cb99ea01b6c8
src/BufferView.C
src/ParagraphMetrics.C
src/ParagraphMetrics.h
src/RowList_fwd.h
src/TextMetrics.C
src/rowpainter.C