Skip to content
  • Almer S. Tigelaar's avatar
    Also apply filtering to newly loaded templates. (dialog_autoformat): Don't · bd02aee6
    Almer S. Tigelaar authored
    2000-11-02  Almer S. Tigelaar  <almer1@dds.nl>
    
            * src/dialog-autoformat.c:
            (templates_load): Also apply filtering to newly loaded templates.
            (dialog_autoformat): Don't call format_template_apply_to_sheet_regions,
            pushing the undo stuff (cmd_autoformat) already does this anyway.
    
            * src/format-template.c: Fix bug #30413
            (format_template_range_check): New, checks if the target range
            is wide enough to apply the format template to.
            (format_template_apply_to_sheet_regions): Use format_template_range_check
            to check the ranges. Display an error and abort when a range is invalid.
            (format_template_recalc_hash): Idem, but don't display an error but a
            warning, as no such error is supposed to happen here.
    
            * src/format-template.c: Fix bug #30419
            (format_template_filter_style): Add COLOR_BACK to pattern filtering.
            (format_template_filter_style): Correct to not always replace
            unset elements with default elements.
            (cb_format_hash_style): call format_template_filter_style with
            default element replacing.
            (cb_format_sheet_style): call format_template_filter_style without
            default element replacing.
            (cb_format_sheet_border): Idem.
    bd02aee6