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 Printing under linux (Possible Bug with Printing under linux)
Re: Possible Bug with Printing under linux [message #44652 is a reply to message #44651] Wed, 06 May 2015 00:12 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1076
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

Maybe the error is in dlg.IsCanceled() expression. Shouldn't it returns false if dialog is canceled. I mean (PrinterJob.cpp line 378):
	if(dodlg) {
		dlg.Run();
		if(dlg.IsCanceled()) // instead of if(!dlg.IsCanceled)
			return false;
	}

Simpler, we want to skip processing when user push cancel button.

I think we want to remove first element of string in this situation:
if(p.StartsWith(" ")){ p = p.Mid(1); }

so,
// Do we really want to remove first empty space? Can you post what dose "lpstat -d" return on your system.
if(p.StartsWith(" "))
   p.Remove(0);


P.S. 1
I will make test of this code later. Firstly I will need to create more printers on my Linyx machine If I can do it virtually.

P.S. 2
I attached modify PrinterJob.cpp file.

Sincerely,
Klugier


U++ - one framework to rule them all.

[Updated on: Wed, 06 May 2015 00:12]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: QTF to ODF (Open Document Format) converter
Next Topic: Clipboard: "RTF" before "IMAGES" format, patch provided
Goto Forum:
  


Current Time: Sat Apr 27 09:27:43 CEST 2024

Total time taken to generate the page: 3.03338 seconds