Mercurial > hg > orthanc-stone
comparison Framework/Scene2DViewport/MeasureToolsToolbox.cpp @ 1018:58eed6bbcabb
fix warnings
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 26 Sep 2019 09:22:27 +0200 |
parents | 52b1c6ff10c5 |
children | f6be9412e42a |
comparison
equal
deleted
inserted
replaced
1017:069519ae389b | 1018:58eed6bbcabb |
---|---|
335 , boost::shared_ptr<LayerHolder> layerHolder | 335 , boost::shared_ptr<LayerHolder> layerHolder |
336 , const char* text | 336 , const char* text |
337 , ScenePoint2D p | 337 , ScenePoint2D p |
338 , int layerIndex) | 338 , int layerIndex) |
339 { | 339 { |
340 // get the scaling factor | |
341 const double pixelToScene = | |
342 scene.GetCanvasToSceneTransform().ComputeZoom(); | |
343 | |
344 TextSceneLayer* textLayer = layerHolder->GetTextLayer(layerIndex); | 340 TextSceneLayer* textLayer = layerHolder->GetTextLayer(layerIndex); |
345 ORTHANC_ASSERT(textLayer != NULL); | 341 ORTHANC_ASSERT(textLayer != NULL); |
346 textLayer->SetText(text); | 342 textLayer->SetText(text); |
347 | 343 |
348 textLayer->SetColor(TEXT_COLOR_RED, TEXT_COLOR_GREEN, TEXT_COLOR_BLUE); | 344 textLayer->SetColor(TEXT_COLOR_RED, TEXT_COLOR_GREEN, TEXT_COLOR_BLUE); |