mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-25 01:51:49 +08:00
Fix expression did not evaluate to a constant
This commit is contained in:
parent
559c5be2fe
commit
4ae796d98f
@ -1962,8 +1962,9 @@ void JKQTPColorPaletteTools::cbDrawOutside(JKQTPEnhancedPainter& painter, QRect
|
|||||||
if (colorBarRightVisible) {
|
if (colorBarRightVisible) {
|
||||||
painter.save();
|
painter.save();
|
||||||
|
|
||||||
uint8_t h=1;
|
static const uint8_t h=1;
|
||||||
uint8_t d[200*h];//, dd[200*h];
|
static const uint8_t dSize = 200*h;
|
||||||
|
uint8_t d[dSize];//, dd[200*h];
|
||||||
for (int i=0; i<200; i++) {
|
for (int i=0; i<200; i++) {
|
||||||
for (int j=0; j<h; j++) {
|
for (int j=0; j<h; j++) {
|
||||||
d[i*h+j]=i;
|
d[i*h+j]=i;
|
||||||
@ -2023,9 +2024,9 @@ void JKQTPColorPaletteTools::cbDrawOutside(JKQTPEnhancedPainter& painter, QRect
|
|||||||
JKQTPimagePlot_array2image<uint8_t>(d, 200, 1, b, palette, 0, 199);*/
|
JKQTPimagePlot_array2image<uint8_t>(d, 200, 1, b, palette, 0, 199);*/
|
||||||
|
|
||||||
|
|
||||||
uint8_t h=1;
|
static const uint8_t h=1;
|
||||||
|
static const uint8_t dSize = 200*h;
|
||||||
uint8_t d[200*h];//, dd[200*h];
|
uint8_t d[dSize];//, dd[200*h];
|
||||||
for (int i=0; i<200; i++) {
|
for (int i=0; i<200; i++) {
|
||||||
for (int j=0; j<h; j++) {
|
for (int j=0; j<h; j++) {
|
||||||
d[i*h+j]=i;
|
d[i*h+j]=i;
|
||||||
|
Loading…
Reference in New Issue
Block a user