View | Details | Raw Unified | Return to bug 39295
Collapse All | Expand All

(-)a/C4/Patroncards/Patroncard.pm (-2 / +1 lines)
Lines 304-310 sub draw_text { Link Here
304
304
305
                #                $font_units_width = $m->string_width($line);
305
                #                $font_units_width = $m->string_width($line);
306
                #                $string_width = ($font_units_width * $text_attribs->{'font_size'}) / $units_per_em;
306
                #                $string_width = ($font_units_width * $text_attribs->{'font_size'}) / $units_per_em;
307
                if ( ( $string_width + $text_attribs->{'llx'} ) < $self->{'width'} ) {
307
                if ( $string_width && ( ( $string_width + $text_attribs->{'llx'} ) < $self->{'width'} ) ) {
308
                    ( $Tx, $Tw ) = text_alignment(
308
                    ( $Tx, $Tw ) = text_alignment(
309
                        $origin_llx, $self->{'width'}, $text_attribs->{'llx'}, $string_width, $line,
309
                        $origin_llx, $self->{'width'}, $text_attribs->{'llx'}, $string_width, $line,
310
                        $text_attribs->{'text_alignment'}
310
                        $text_attribs->{'text_alignment'}
311
- 

Return to bug 39295