=== modified file 'configure.ac'
--- configure.ac	2010-07-18 04:36:51 +0000
+++ configure.ac	2010-07-21 13:21:01 +0000
@@ -193,6 +193,7 @@
 	dnl We have it, now set up the flags
 	CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"
 	AC_CHECK_HEADER(omp.h)
+	AC_DEFINE(HAVE_OPENMP, 1, [Use OpenMP])
 fi
 
 dnl ******************************

=== modified file 'src/display/nr-filter-gaussian.cpp'
--- src/display/nr-filter-gaussian.cpp	2010-04-03 14:21:28 +0000
+++ src/display/nr-filter-gaussian.cpp	2010-07-21 13:22:43 +0000
@@ -590,7 +590,8 @@
     double const deviation_y_org = _deviation_y * trans.expansionY();
     int const PC = NR_PIXBLOCK_BPP(in);
 #if HAVE_OPENMP
-    int const NTHREADS = std::max(1,std::min(8, Inkscape::Preferences::get()->getInt("/options/threading/numthreads", omp_get_num_procs())));
+    Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+    int const NTHREADS = prefs->getIntLimited("/options/threading/numthreads", omp_get_num_procs(), 1, 256);
 #else
     int const NTHREADS = 1;
 #endif // HAVE_OPENMP

