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

Two lines of unused code in Qt Charts

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Not Evaluated
    • Resolution: Done
    • 5.11.1
    • 5.12.0 Alpha
    • Charts
    • None
    • 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

            sgaist Samuel Gaist
            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