Slider for notes height (was [PATCH] Add user definible options to the print menu)

Dirk Hohndel dirk at hohndel.org
Tue Mar 19 16:25:42 PDT 2013


Duh. Please send a patch that fixes my "fix".

...

/D



On March 19, 2013 4:17:32 PM Salvador Cuñat <salvador.cunat at gmail.com> wrote:
> On Tue, Mar 19, 2013 at 12:51:49PM -0700, Dirk Hohndel wrote:
> >
> > That is again mildly confusing to use. As is the fact that the
> > percentages only add up to 93 and that the range given for the third
> > slider is wrong in the label.
> >
> Hi Dirk.
>
> print_options.notes_height = 100 - print_options.scale1 - 
> print_options.scale2; \
> 	
> This don't work because  notes + tanks + profile = 100
>
> In print() we want to reach 2.0, but 0,15 + (100/92,5)*2 = 2,31
>
> Then the printout get out of bounds, as happens actually (except on
> default conditions that sums 92.
>
> May be the divisor you wanted was 100/92.5 = 108.1 ?
>
> The labels function works perfectly.
>
> Regards
>
> Salva
>




More information about the subsurface mailing list