Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0:Ports
paps
paps-cpi_scale_calculation.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File paps-cpi_scale_calculation.patch of Package paps
Description: scale miscalculated for --cpi option Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;bug=514332 Bug-Debian: http://bugs.debian.org/514332 Author: Alexander Prinsier <debianbugs@aphexer.mailhaven.com> Forwarded: http://sourceforge.net/tracker/?func=detail&aid=2572267&group_id=153049&atid=786239 --- src/paps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- src/paps.c +++ src/paps.c 2017-12-05 12:29:15.998815283 +0000 @@ -556,7 +556,7 @@ int main(int argc, char *argv[]) cairo_user_font_face_set_render_glyph_func(paps_glyph_face, paps_render_glyph); /* Init page_layout_t parameters set by the option parsing */ - page_layout.cpi = page_layout.lpi = 0; + page_layout.cpi = page_layout.lpi = 0.0L; options = g_option_group_new("main","","",&page_layout, NULL); g_option_group_add_entries(options, entries); @@ -749,7 +749,7 @@ int main(int argc, char *argv[]) w = pango_font_metrics_get_approximate_digit_width (metrics); if (w > max_width) max_width = w; - page_layout.scale_x = 1 / page_layout.cpi * 72.0 * (gdouble)PANGO_SCALE / (gdouble)max_width; + page_layout.scale_x = 1.0L / page_layout.cpi * 72.0 * (gdouble)PANGO_SCALE / (gdouble)max_width; pango_font_metrics_unref (metrics); g_object_unref (G_OBJECT (fontmap));
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor