View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011839 | Scribus | Scripter | public | 2013-11-16 14:34 | 2013-11-16 23:07 |
Reporter | gpittman | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 1.4.3 | ||||
Summary | 0011839: constant "p" for pts to picas conversion is wrong | ||||
Description | This was originally pointed out by José Antonio Rocha on the mail list. | ||||
Steps To Reproduce | Open Scripter console. Write a command 'print p' Run result: 1.0 -- should be 0.0833333 ... | ||||
Additional Information | In the file units.cpp, there are these lines, starting at line 37: // PT, MM, IN, P, CM, C, °, % double ratio[] = { 1.0, 25.4/72.0, 1.0/72.0, 1.0, 2.54/72.0, 25.4/72.0/4.512, 1.0, 1.0 }; // double ratio[] = { 1.0, 25.4/72.0, 1.0/72.0, 1.0/12.0, 2.54/72.0, 25.4/72.0/4.512, 1.0, 1.0 }; return ratio[index]; For some reason, the line with the correct ration (1.0/12.0) has been commented out. Fixing this fixes the answer in the console, but I don't know if it might have other bad effects. I don't know why this was commented out in the first place. | ||||
Tags | No tags attached. | ||||
Patch | |||||
|
This is also true in 1.5.0svn |
|
>> Fixing this fixes the answer in the console, but I don't know if it might have other bad effects. It breaks unit conversion in spinboxes :S |
|
shouldn't that be fixed? |
|
Its commit 10373: 0000130: Allow base 12 type display of pica. Uses points to store the value and displays as XpY.Z That is.. pica are just points shown in a different format, not really a different unit. Not sure how to fix this properly for scripter though. |