Re: [evolution-patches] [gtkhtml] #67022 line wrapping on CJK texts
- From: Radek Doulík <rodo novell com>
- To: Changwoo Ryu <cwryu debian org>
- Cc: evolution patches <evolution-patches lists ximian com>
- Subject: Re: [evolution-patches] [gtkhtml] #67022 line wrapping on CJK texts
- Date: Mon, 18 Oct 2004 18:45:18 +0200
Hi Changwoo,
thanks for your patch.
This part seems to be unnecessarily slow:
- wl = clen + max_len;
+ wmax = MIN(clen + max_width, slen);
+ while (utf8_width (s, wmax - clen) > max_width)
+ wmax--;
+ wl = wmax;
I think it will be better to have another helper function returning the lenght of string starting on s which is not exceeding max_width.
Cheers
Radek
On Sat, 2004-10-02 at 17:29 +0900, Changwoo Ryu wrote:
Patch attached.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]