diff --git a/src/ui/dialog/aboutbox.cpp b/src/ui/dialog/aboutbox.cpp index 94ce20e5f6b7b740044aa7ed294b5ea06a501ae5..5f76eaf898ac5f87ed014eb8e85fd7687298d450 100644 --- a/src/ui/dialog/aboutbox.cpp +++ b/src/ui/dialog/aboutbox.cpp @@ -20,6 +20,8 @@ #include "aboutbox.h" +#include +#include #include #include @@ -41,6 +43,21 @@ #include "util/units.h" +using namespace std; + +int bit_version() +{ +switch (sizeof(void*)){ + case 4: return 32; + break; + case 8: return 64; + break; + } +} + +const int BIT_VERSION=bit_version(); +std::string BIT_VERSION_STRING = ", bit version = " + std::to_string(BIT_VERSION); + namespace Inkscape { @@ -82,7 +99,7 @@ AboutBox::AboutBox() // inserted into text widgets by the Gtk::AboutDialog parent class // clang-format off set_program_name ( "Inkscape" ); - set_version ( Inkscape::version_string); + set_version ( Inkscape::version_string + BIT_VERSION_STRING); set_logo_icon_name( "" ); // Disable icon set_website ( "https://www.inkscape.org"); set_website_label (_("Inkscape website"));