Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-70179

Two lines of unused code in Qt Charts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.11.1
    • Fix Version/s: 5.12.0 Alpha
    • Component/s: Charts
    • Labels:
      None
    • Commits:
      79888d87ad08ec120fc170c7d450c5ac1067ce89

      Description

      In file chartaxiselement.cpp: https://github.com/qt/qtcharts/blob/5.11/src/charts/axis/chartaxiselement.cpp#L452

      Method ChartAxisElement::createDateTimeLabels

      This is useless code

      int n = qMax(int(-qFloor(std::log10((max - min) / (ticks - 1)))), 0);
      
      n++;
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            sgaist Samuel Gaist
            Reporter:
            lantern Harry Wood
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes