Mercurial > hg > orthanc-stone
comparison Framework/Widgets/LayerWidget.cpp @ 268:5bd4161bf11b am-2
removed constness of the observable when emitting a message
author | am@osimis.io |
---|---|
date | Wed, 22 Aug 2018 15:08:15 +0200 |
parents | 89d02de83c03 |
children | 46c5296d867e |
comparison
equal
deleted
inserted
replaced
267:89d02de83c03 | 268:5bd4161bf11b |
---|---|
488 | 488 |
489 InvalidateAllLayers(); // TODO Removing this line avoid loading twice the image in WASM | 489 InvalidateAllLayers(); // TODO Removing this line avoid loading twice the image in WASM |
490 } | 490 } |
491 } | 491 } |
492 | 492 |
493 void LayerWidget::HandleMessage(const IObservable& from, const IMessage& message) | 493 void LayerWidget::HandleMessage(IObservable& from, const IMessage& message) |
494 { | 494 { |
495 switch (message.GetType()) { | 495 switch (message.GetType()) { |
496 case MessageType_LayerSource_GeometryReady: | 496 case MessageType_LayerSource_GeometryReady: |
497 OnGeometryReady(dynamic_cast<const ILayerSource&>(from)); | 497 OnGeometryReady(dynamic_cast<const ILayerSource&>(from)); |
498 break; | 498 break; |