diff --git a/doc/dox/whatsnew.dox b/doc/dox/whatsnew.dox index 1b2a2a4951..6bd4d86116 100644 --- a/doc/dox/whatsnew.dox +++ b/doc/dox/whatsnew.dox @@ -20,7 +20,6 @@ Changes, compared to \ref page_whatsnew_V2019_11 "v2019.11" include:
  • fixed issue #41: Build error when JKQtPlotter_BUILD_INCLUDE_XITS_FONTS set to OFF , thanks to user:smistad
  • fixed issue #37: CMake installs things into $PREFIX/doc/*.txt , thanks to user:certik
  • fixed issue #45: Build error on mac jkqtfastplotter.cpp:342:28: Variable has incomplete type 'QPainterPath', thanks to user:abdedixit
  • -
  • fixed: JKQTPColumnConstIterator and JKQTPColumnIterator: getImagePositionX() and getImagePositionY() were switched
  • renamed/breaking change: renamed JKQTPColorPaletteStyleAndToolsMixin::setPalette() -> JKQTPColorPaletteStyleAndToolsMixin::setColorPalette()
  • removed/breaking change: removed the usage of some deprecated functions and objects (e.g. QMatrix)
  • removed/breaking change: removed the overlay elements (derived from JKQTPOverlayElement), which were not very well set up and are more confusing than useful.
  • diff --git a/lib/jkqtplotter/jkqtpdatastorage.h b/lib/jkqtplotter/jkqtpdatastorage.h index 4944b78049..6c286b0a7a 100644 --- a/lib/jkqtplotter/jkqtpdatastorage.h +++ b/lib/jkqtplotter/jkqtpdatastorage.h @@ -1871,12 +1871,12 @@ class JKQTPColumnIterator { /** \brief returns the referenced position/row interpreted as an image pixel, x-component, returns -1 for an invalid operator */ inline int getImagePositionX() const { if (!isValid()) return -1; - return pos_ / static_cast(col_->getImageColumns()); + return pos_ % static_cast(col_->getImageColumns()); } /** \brief returns the referenced position/row interpreted as an image pixel, y-component, returns -1 for an invalid operator */ inline int getImagePositionY() const { if (!isValid()) return -1; - return pos_ % static_cast(col_->getImageColumns()); + return pos_ / static_cast(col_->getImageColumns()); } /*! \brief if the data in the column is interpreted as an image, this is the number of columns (x-dimension) of the image \see JKQTPColumn::imageColumns */ @@ -2202,12 +2202,12 @@ class JKQTPColumnConstIterator { /** \brief returns the referenced position/row interpreted as an image pixel, x-component, returns -1 for an invalid operator */ inline int getImagePositionX() const { if (!isValid()) return -1; - return pos_ / static_cast(col_->getImageColumns()); + return pos_ % static_cast(col_->getImageColumns()); } /** \brief returns the referenced position/row interpreted as an image pixel, y-component, returns -1 for an invalid operator */ inline int getImagePositionY() const { if (!isValid()) return -1; - return pos_ % static_cast(col_->getImageColumns()); + return pos_ / static_cast(col_->getImageColumns()); } /*! \brief if the data in the column is interpreted as an image, this is the number of columns (x-dimension) of the image \see JKQTPColumn::imageColumns */