Merge lp:~widelands-dev/widelands/bug-1687043-multiline-edit into lp:widelands
Proposed by
Notabilis
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 8346 | ||||
Proposed branch: | lp:~widelands-dev/widelands/bug-1687043-multiline-edit | ||||
Merge into: | lp:widelands | ||||
Diff against target: |
147 lines (+36/-33) 2 files modified
src/graphic/wordwrap.cc (+26/-32) src/graphic/wordwrap.h (+10/-1) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/bug-1687043-multiline-edit | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Klaus Halfmann | compile, test, regressiontest | Approve | |
GunChleoc | Approve | ||
Review via email: mp+323428@code.launchpad.net |
Description of the change
Fixed heavy memory leak in the WordWrap class. The problem was loading the font on every change without freeing it.
Also did some refactoring so the font is only loaded once per class. This fixes a noticeable slowdown while typing in multi-line edit boxes.
To post a comment you must log in.
Looks fine for me, will compile this and check some Mutiline text fields....