Skip to content

Commit 502f6d9

Browse files
committed
textual icons to string corrections
1 parent 77b8fa2 commit 502f6d9

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

common/output-model.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,10 @@ void output_model::draw(ux_window& win, rect view_rect, device_models_list & dev
583583

584584

585585
ImGui::SetCursorPos(ImVec2(7, h - ImGui::GetTextLineHeightWithSpacing() - 2));
586-
ImGui::Text("%s", textual_icons::minus_square_o); ImGui::SameLine();
586+
std::string minus_square_icon_str = std::string(rsutils::string::from()
587+
<< textual_icons::minus_square_o);
588+
ImGui::Text("%s", minus_square_icon_str.c_str());
589+
ImGui::SameLine();
587590
ImGui::SetCursorPos(ImVec2(30, h - ImGui::GetTextLineHeightWithSpacing() - 4));
588591

589592

common/viewer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2716,7 +2716,7 @@ namespace rs2
27162716
std::string excl_icon_str = std::string(rsutils::string::from()
27172717
<< textual_icons::exclamation_triangle
27182718
<< " Using GLSL for processing but not for rendering can reduce CPU utilisation, but is likely to hurt overall performance!");
2719-
ImGui::Text(excl_icon_str.c_str());
2719+
ImGui::Text("%s", excl_icon_str.c_str());
27202720
ImGui::PopStyleColor();
27212721
}
27222722
#endif
@@ -2974,7 +2974,7 @@ namespace rs2
29742974
std::string excl_icon_str = std::string(rsutils::string::from()
29752975
<< textual_icons::exclamation_triangle
29762976
<< " DDS changes will take effect only after restarting the application");
2977-
ImGui::Text(excl_icon_str.c_str());
2977+
ImGui::Text("%s", excl_icon_str.c_str());
29782978
ImGui::PopStyleColor();
29792979

29802980
}
@@ -3052,7 +3052,7 @@ namespace rs2
30523052
std::string excl_icon_str = std::string(rsutils::string::from()
30533053
<< textual_icons::exclamation_triangle
30543054
<< " The application will be restarted in order for new settings to take effect");
3055-
ImGui::Text(excl_icon_str.c_str());
3055+
ImGui::Text("%s", excl_icon_str.c_str());
30563056
ImGui::PopStyleColor();
30573057
}
30583058

readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<p align="center">RealSense SDK 2.0 is a cross-platform library for RealSense depth cameras.
1111
The SDK allows depth and color streaming, and provides intrinsic and extrinsic calibration information.</p>
1212

13-
1413
<p align="center">
1514
<a href="https://www.apache.org/licenses/LICENSE-2.0"><img src="https://img.shields.io/github/license/IntelRealSense/librealsense.svg" alt="License"></a>
1615
<a href="https://github.com/IntelRealSense/librealsense/releases/latest"><img src="https://img.shields.io/github/v/release/IntelRealSense/librealsense?sort=semver" alt="Latest release"></a>

0 commit comments

Comments
 (0)