[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Corrupted view in TortoiseMerge

From: Alexander Makeev <exm_at_exmsoft.com>
Date: 2005-11-30 01:47:58 CET

 As I have been wrote to user-list:
> In TortoiseMerge when I diff files long lines are truncated in some
> distance from right window border. Endings of short lines expanded with symbols
> from other lines. Line selection actually selects strange part of
> window. Scroll to the right doesn't show line endings, left scroll is ok.
> Screenshot of this problems: http://exmsoft.com/other/mergeview.png.

Exploring source code I found that in CBaseView all chars have to be
one width (width of "x" char). I change it to "i"(thin
letter)(CBaseView::CalcLineCharDim()), old problem is gone but now I
have problem with scroll bars range. I just cann't scroll till the end
of line. I revert "i" to "x" back, and change line trimming option
during output in CBaseView::DrawSingleLine
from VERIFY(pDC->ExtTextOut(origin.x, origin.y, ETO_CLIPPED, &rc, line, nCount, NULL));
to VERIFY(pDC->ExtTextOut(origin.x, origin.y, ETO_CLIPPED, &rc, line, line.GetLength(), NULL));
                                                                      ^^^^^^^^^^^^^^^
May be it less optimized but it works fine for me. But I still
wondering why nobody else has this problem :) and want to understand
why I get it. I haven't any monospaced font in settings dialog.
May be I have wrong understanding of source code. I started to explore it
one hour ago :)

-- 
Best regards,
 Alexander
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Nov 30 08:13:02 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.