From 07bcfdc262c6e16f4f83720892d747a86da29a0f Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Mon, 16 Dec 2013 09:17:40 +0000
Subject: [PATCH] Fix problem when compiling with XERCESC

---
 DDCore/src/plugins/Compact2Objects.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/DDCore/src/plugins/Compact2Objects.cpp b/DDCore/src/plugins/Compact2Objects.cpp
index 34461ab9e..182e460fc 100644
--- a/DDCore/src/plugins/Compact2Objects.cpp
+++ b/DDCore/src/plugins/Compact2Objects.cpp
@@ -307,7 +307,7 @@ template <> void Converter<Material>::operator()(xml_h e) const {
       has_density = false;
     }
     if ( density.ptr() && density.hasAttr(_U(unit)) )   {
-      dens_unit = density.attr<double>(_U(unit))/XML::_toDouble("gram/cm3");
+      dens_unit = density.attr<double>(_U(unit))/XML::_toDouble(_Unicode(gram/cm3));
     }
     if ( dens_unit != 1.0 )  {
       cout << matname << " Density unit:" << dens_unit;
-- 
GitLab