From: joncruz Date: Sat, 22 Mar 2008 18:54:06 +0000 (+0000) Subject: Numeric values on test area X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d5edbcb9362e1d1e28bf53abade939e610bb3cd4;p=inkscape.git Numeric values on test area --- diff --git a/src/ui/dialog/input.cpp b/src/ui/dialog/input.cpp index e9b250d59..1400ce93f 100644 --- a/src/ui/dialog/input.cpp +++ b/src/ui/dialog/input.cpp @@ -841,6 +841,9 @@ void InputDialogImpl::updateTestAxes( Glib::ustring const& key, GdkDevice* dev ) axesValues[i].set_sensitive(true); axesValues[i].set_fraction( (axesMap[key][i].second- dev->axes[i].min) / (dev->axes[i].max - dev->axes[i].min) ); } + gchar* str = g_strdup_printf("%f", axesMap[key][i].second); + axesValues[i].set_text(str); + g_free(str); } break; case 3: @@ -851,6 +854,9 @@ void InputDialogImpl::updateTestAxes( Glib::ustring const& key, GdkDevice* dev ) axesValues[i].set_sensitive(true); axesValues[i].set_fraction( (axesMap[key][i].second- dev->axes[i].min) / (dev->axes[i].max - dev->axes[i].min) ); } + gchar* str = g_strdup_printf("%f", axesMap[key][i].second); + axesValues[i].set_text(str); + g_free(str); } } @@ -861,6 +867,7 @@ void InputDialogImpl::updateTestAxes( Glib::ustring const& key, GdkDevice* dev ) if ( !dev ) { for ( gint i = 0; i < static_cast(G_N_ELEMENTS(axesValues)); i++ ) { axesValues[i].set_fraction(0.0); + axesValues[i].set_text(""); axesValues[i].set_sensitive(false); } }