On 10 October 2015 at 22:57, Joakim Bygdell <j.bygd...@gmail.com> wrote:
>
> On 10 Oct 2015, at 21:54, Lubomir I. Ivanov <neolit...@gmail.com> wrote:
>
> On 10 October 2015 at 22:44, Joakim Bygdell <j.bygd...@gmail.com> wrote:
>
>
> On 10 Oct 2015, at 21:38, Lubomir I. Ivanov <neolit...@gmail.com> wrote:
>
> On 10 October 2015 at 21:46, Willem Ferguson
> <willemfergu...@zoology.up.ac.za> wrote:
>
> This is an old problem that I assume we would want to correct. Attached
> image showing printwork of a dive. The white lines are so wide that they
> obscure numbers on the Y axis. This applies both to physical printouts and
> when printing to PDF. Necessary to file a bug?
> SHA gbfaf57e1ec2f on Ubuntu.
>
>
> i though we solved it... :\
> which Qt version is that?
>
> 5.5 for me.
> See it on master and on Beta3.
>
>
> for some reason, the printing completely stopped working on my setup.
> it says it can no longer load a library; i need to investigate that first.
>
>
> I can to some degree work around the problem by installing a PDFprinter that
> catches the print command rather than saving the print preview as a pdf.
>

Joakim,

1) a question:
do you see those same line widths enlarge when you zoom in the profile
(e.g. mouse scroll wheel) or do their widths stay constant at all zoom
levels?

2) a test:
can you try the attached patch (and perhaps you WIllem too) and see if
it solves the line widths when printing?

thanks.
lubomir
--
diff --git a/qt-ui/profile/divecartesianaxis.cpp 
b/qt-ui/profile/divecartesianaxis.cpp
index 46f1a96..67b20b0 100644
--- a/qt-ui/profile/divecartesianaxis.cpp
+++ b/qt-ui/profile/divecartesianaxis.cpp
@@ -12,8 +12,7 @@ static QPen gridPen()
 {
        QPen pen;
        pen.setColor(getColor(TIME_GRID));
-       pen.setWidth(2);
-       pen.setCosmetic(true);
+       pen.setWidth(0);
        return pen;
 }
 
@@ -222,8 +221,7 @@ void DiveCartesianAxis::updateTicks(color_indice_t color)
                DiveLineItem *line = new DiveLineItem(this);
                QPen pen;
                pen.setBrush(getColor(color));
-               pen.setCosmetic(true);
-               pen.setWidthF(2);
+               pen.setWidthF(0.0);
                line->setPen(pen);
                line->setZValue(0);
                lines.push_back(line);
@@ -343,8 +341,7 @@ void DiveCartesianAxis::setColor(const QColor &color)
        QPen defaultPen(color);
        defaultPen.setJoinStyle(Qt::RoundJoin);
        defaultPen.setCapStyle(Qt::RoundCap);
-       defaultPen.setWidth(2);
-       defaultPen.setCosmetic(true);
+       defaultPen.setWidth(0);
        setPen(defaultPen);
 }
 
_______________________________________________
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to