Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-814

Check of 'halign' in ImageMacro is missing (maybe a 'copy&paste bug')

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 B3
    • Fix Version/s: 1.0 B4
    • Labels:
      None
    • Similar issues:

      Description

      Code in class com.xpn.xwiki.render.macro.ImageMacro:

      Line 89-92

      String halign = params.get("halign", 4);
      if (null == align || align.indexOf("=") != -1) {
        align = null;
      }
      

      The align variable in the if() should probably be halign

        Attachments

          Activity

            People

            Assignee:
            vmassol Vincent Massol
            Reporter:
            melvng Melv Ng
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: