diff options
| author | Matthias Melcher <github@matthiasm.com> | 2024-12-21 12:22:04 -0600 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2024-12-21 12:22:13 -0600 |
| commit | 17d300215bc96dd3c0791bbcc776b71716bd4576 (patch) | |
| tree | 95f2e8dc4bfb119b2c98f646a9d1e23e4d4685fb /fluid | |
| parent | 4d8a0df31227fb3558b6976e63a29e22e78163cb (diff) | |
FLUID: Remove warnings.
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/fluid_filename.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fluid/fluid_filename.cxx b/fluid/fluid_filename.cxx index 99e1e068b..7031d6527 100644 --- a/fluid/fluid_filename.cxx +++ b/fluid/fluid_filename.cxx @@ -208,12 +208,12 @@ Fl_String fl_filename_shortened(const Fl_String &filename, int max_chars) { // Create a new string by replacing characters in the middle. int remove_chars = num_chars - max_chars + ell_bytes; int left_chars = (max_chars - ell_bytes)/2; - int right_chars = max_chars - left_chars - 3; - int right_start_char = num_chars - right_chars; +// int right_chars = max_chars - left_chars - 3; +// int right_start_char = num_chars - right_chars; // Convert character counts into byte counts. int left_bytes = fl_utf8strlen(homed_filename.c_str(), left_chars); int right_start_byte = fl_utf8strlen(homed_filename.c_str()+left_bytes, remove_chars) + left_bytes; - return homed_filename.substr(0, left_bytes) + "..." + homed_filename.substr(right_start_byte); + return homed_filename.substr(0, left_bytes) + ell + homed_filename.substr(right_start_byte); } else { // Nothing to change. return homed_filename; |
