PDFedit Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000248 [GUI] GUI Scripts minor always 05-16-08 09:08 07-03-09 16:25
Reporter hockm0bm View Status public  
Assigned To bilbo
Priority normal Resolution fixed  
Status resolved  
Summary 0000248: Drawing tolls produce error messages on console
Description When you try to highlight a text you get console warnings (note that no warning is printed in pdfedit command line window):
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 0
QString::arg(): Argument missing: highlightingSelectedText(), 678
QString::arg(): Argument missing: highlightingSelectedText(), 273
Additional Information
Attached Files

- Relationships

- Notes
(0000471)
hockm0bm
05-21-08 12:06

I can reproduce this error messages for all kinds of our drawing tools:
Draw line:
QString::arg(): Argument missing: drawLine(54,379,354,35,true), 598
QString::arg(): Argument missing: drawLine(54,379,354,35,true), 156

Draw arrow:
QString::arg(): Argument missing: drawArrow(382,450,226,82,true), 470
QString::arg(): Argument missing: drawArrow(382,450,226,82,true), 203

Draw rectangle:
QString::arg(): Argument missing: drawRect(363,190,489,344,true), 733
QString::arg(): Argument missing: drawRect(363,190,489,344,true), 465

Strike through text:
QString::arg(): Argument missing: strikeTroughSelection(), 0
QString::arg(): Argument missing: strikeTroughSelection(), 0
QString::arg(): Argument missing: strikeTroughSelection(), 0
QString::arg(): Argument missing: strikeTroughSelection(), 0
QString::arg(): Argument missing: strikeTroughSelection(), 386
QString::arg(): Argument missing: strikeTroughSelection(), 327
 
(0000472)
hockm0bm
05-21-08 12:06

Based on previous comment, I am changing Issue summary
 
(0000864)
bilbo
07-03-09 16:01

This is caused by gui/callback.qs

Some modes set callback function that does not want the parameters that are passed by the callback

In callbacks called from functions like PageViewMode::mouseReleaseLeftButton, the parameters are passed to script by replacing numbered parameters (%1, %2, ...) in the callback tamplate. In these cases, not enough parameters is specified in the templates.

Possible fix: add dummy parameters to these callbacks (both to code for setting the callbacks and declaration of the called functions) to silence these warnings
 
(0000865)
bilbo
07-03-09 16:25

Fixed in CVS
 

- Issue History
Date Modified Username Field Change
05-16-08 09:08 hockm0bm New Issue
05-21-08 12:06 hockm0bm Note Added: 0000471
05-21-08 12:06 hockm0bm Note Added: 0000472
05-21-08 12:07 hockm0bm Summary highliting produces error messages on console => Drawing tolls produce error messages on console
07-03-09 15:04 hockm0bm Status new => assigned
07-03-09 15:04 hockm0bm Assigned To  => bilbo
07-03-09 16:01 bilbo Note Added: 0000864
07-03-09 16:25 bilbo Status assigned => resolved
07-03-09 16:25 bilbo Resolution open => fixed
07-03-09 16:25 bilbo Note Added: 0000865