Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » RichText,QTF,RTF... » Possible bug with RichText table zoom (Zooming a richtext text containing tables.)
Re: Possible bug with RichText table zoom [message #43393 is a reply to message #43261] Wed, 23 July 2014 08:52 Go to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
I would say that the problem is that ApplyZoom actually changes the RichText - and you are applying it repeatedly.

I would perhaps try somtehing like

			while (z.m)
			{
				txt = ParseQTF(text.Begin() + 1, 0);
				txt.ApplyZoom(z);
				txtsz.cx = min(INT_MAX, txt.GetWidth());
				txtsz.cy = txt.GetHeight(Zoom(1, 1), txtsz.cx);
				if ((txtsz.cx != 10000) && (txtsz.cx > r.GetWidth() || txtsz.cy > r.GetHeight()))
					z.m--;
				else
					break;
			}

 
Read Message
Read Message
Previous Topic: Spell-checking
Next Topic: link option
Goto Forum:
  


Current Time: Tue Jun 17 21:03:25 CEST 2025

Total time taken to generate the page: 0.05567 seconds