| [ Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]
STR #971
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 2 - Low, e.g. a documentation error or undocumented side-effect |
Scope: | 1 - Specific to a machine/printer |
Subsystem: | Core Library |
Summary: | Fl_Value_Slider with a step(0.01) shows big number in box |
Version: | 1.1-current |
Created By: | renez.xs4all |
Assigned To: | mike |
Fix Version: | 1.1-current (SVN: v4487) |
Update Notification: | |
Trouble Report Files:
Trouble Report Comments:
|
#1 | renez.xs4all 12:25 Aug 06, 2005 |
| /* fltk svn version 4469 (1.1.7) linux 2.6.12.2 xorg 6.8.2 value display is to big to fit in box when step 0.01 value oke with step 0.1 or 1 */ #include <FL/Fl.H> #include <FL/Fl_Window.H> #include <FL/Fl_Value_Slider.H>
int main(int argc, char **argv) { Fl_Window *wBmi = new Fl_Window(400,165,"Slider problem"); Fl_Value_Slider* l = new Fl_Value_Slider(10, 10, 380, 30, "length"); l->type(3); l->minimum(0.50); l->maximum(3.00); l->step(0.01); //changing step to 0.1 works fine l->value(1.80); //value shown =1.800000000 wBmi->end(); wBmi->show(argc, argv); return Fl::run(); | |
|
#2 | mike 17:33 Aug 07, 2005 |
| Hmm, I can't duplicate this problem - everything looks perfect on my FC3 system... | |
|
#3 | mike 07:21 Aug 08, 2005 |
| [posting from newsgroup]
Thats because you installed fltk with ./configure --enable-debug
Then it works for me too! | |
|
#4 | mike 07:53 Aug 08, 2005 |
| OK, I've reconfigured without debug and can duplicate the problem.
If I add a debug printf that shows the value of "ab", then the problem goes away.
I'm guessing this is a GCC bug/oddity on Linux (I don't see this problem when compiling in "release" mode in VC++, for example), but I'll do some research to see how we can eliminate the problem... | |
|
#5 | mike 08:02 Aug 08, 2005 |
| Fixed in Subversion repository.
Please try the attached patch and confirm on your system... | |
[ Return to Bugs & Features ]
|
| |