Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ImpulseAdventure committed Mar 10, 2022
1 parent 6983954 commit 5afe134
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/GUIslice_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
// Define current release (X.Y.Z) & build number
// =======================================================================

#define GUISLICE_VER "0.17.1"
#define GUISLICE_VER "0.17.1.1"

#endif // _GUISLICE_VERSION_H_

4 changes: 2 additions & 2 deletions src/elem/XGraph.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ bool gslc_ElemXGraphDraw(void* pvGui,void* pvElemRef,gslc_teRedrawType eRedraw)
if (pBox->bScrollEn) {
pBox->nPlotIndStart -= (nScrollMax - pBox->nScrollPos);
}
pBox->nPlotIndStart = pBox->nPlotIndStart % pBox->nBufMax;

pBox->nPlotIndStart = pBox->nBufMax ? (pBox->nPlotIndStart % pBox->nBufMax) : 0;
uint16_t nPlotInd = 0;
uint16_t nIndMax = 0;
nIndMax = (pBox->nBufMax < pBox->nPlotIndMax)? pBox->nBufMax : pBox->nPlotIndMax;
Expand Down

0 comments on commit 5afe134

Please sign in to comment.