|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
Re: kofficeOn Sat October 31 2009, Inge Wallin wrote:
> If you look at the details, there are also a lot of subtle differences > between the four cases, but I guess those can be overcome with some > creative use of static arrays. > I don't see any need for static arrays here. If you create a function taking a KoBorder::BorderData and 2 points as parameters no static arrays are needed. That does not mean that I'm against the proposal you made in you mail. I think it an enum would have benefits and would reduce code duplication, but let the ones which were for the solution we have now explain why they prefer it. Still the function reduces the code duplication in both scenarios. Thorsten _______________________________________________ koffice-devel mailing list koffice-devel@... https://mail.kde.org/mailman/listinfo/koffice-devel |
|
|
Re: kofficeOn Sunday 01 November 2009 06:29:50 Thorsten Zachmann wrote:
> On Sat October 31 2009, Inge Wallin wrote: > > If you look at the details, there are also a lot of subtle differences > > between the four cases, but I guess those can be overcome with some > > creative use of static arrays. > > I don't see any need for static arrays here. If you create a function > taking a KoBorder::BorderData and 2 points as parameters no static arrays > are needed. That's not enough. If you look at the calculations of innerOffset and outerOffset, you will notice that there is the same difference between the four cases as between these four pairs: (-1, 0), (0, -1), (1, 0), (0, 1) There is also a bug in there, I can see now. The linewidths of the horizontal lines should be multiplied by zoomY, not zoomX. So at least these multipliers and the zoom factor has to be sent as parameters as well. But that's not an argument against your suggestion. I'll do something about it today. > That does not mean that I'm against the proposal you made in you mail. I > think it an enum would have benefits and would reduce code duplication, > but let the ones which were for the solution we have now explain why they > prefer it. Yes, I'm waiting for that. -Inge _______________________________________________ koffice-devel mailing list koffice-devel@... https://mail.kde.org/mailman/listinfo/koffice-devel |
| Free embeddable forum powered by Nabble | Forum Help |