diff --git a/src/Cxx/Qt/QtBarChart.cxx b/src/Cxx/Qt/QtBarChart.cxx
index b7303df0595121e153e634b017bb0c4a81dd1637..7d831cc5fa7a0768b53c03ef0519f891b4b6761e 100644
--- a/src/Cxx/Qt/QtBarChart.cxx
+++ b/src/Cxx/Qt/QtBarChart.cxx
@@ -73,7 +73,7 @@ int main(int, char*[] )
   // Finally render the scene and compare the image to a reference image
   view->GetRenderWindow()->SetMultiSamples(0);
   view->GetRenderWindow()->SetWindowName("QtBarChart");
-  view->GetRenderWindow()-Render();
+  view->GetRenderWindow()->Render();
   view->GetInteractor()->Initialize();
   view->GetInteractor()->Start();