Uploaded image for project: 'Pentaho Reporting and Pentaho Report Designer'
  1. Pentaho Reporting and Pentaho Report Designer
  2. PRD-5746

Border radius values are saved under an incorrect key

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: High
    • Resolution: Fixed
    • Affects Version/s: 5.4.1.2 GA, 6.1.0.1 GA, Master
    • Fix Version/s: 7.0.0 GA
    • Component/s: Engine
    • Labels:
    • Environment:
      Tested under 64bit ArchLinux and Windows7
    • Story Points:
      0
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.
    • Steps to Reproduce:
      Hide

      Using a top left radius as an example:

      Create a new report and add a label.
      Add a top and left border to the label, then add a value to "top-left-width" and "top-left-height". This should round the top left corner of the label when you view the report.
      Save the report, close the report, then reopen the report.
      The "top-left-width" and "top-left-height" values will now be at the default rather than the value you set.

      Show
      Using a top left radius as an example: Create a new report and add a label. Add a top and left border to the label, then add a value to "top-left-width" and "top-left-height". This should round the top left corner of the label when you view the report. Save the report, close the report, then reopen the report. The "top-left-width" and "top-left-height" values will now be at the default rather than the value you set.

      Description

      The reporting engine saves the radius values under a different name than what it reads when loading the report.

      The value is saved under "border-top-left-height", but read from "border-top-left-radius-height" (and so on for each corner and width).

      Adding "radius" (in lines 299-314 and lines 343-358 for the current master) in pentaho-reporting/engine/core/source/org/pentaho/reporting/engine/classic/core/modules/parser/bundle/writer/StyleWriterUtility.java resolves the issue for me.

        Attachments

          Activity

            People

            Assignee:
            gdavid Golda Thomas
            Reporter:
            Blaises Blaise Duszynski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: